Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appbuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
appbuild
Commits
68c31921
Commit
68c31921
authored
Apr 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库字段映射关键字转义问题
parent
8b143fc3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
14 deletions
+24
-14
appbuild-manage-ui/admin/src/views/system/gentable/list.vue
appbuild-manage-ui/admin/src/views/system/gentable/list.vue
+9
-9
appbuild-manager/src/main/bin/start.sh
appbuild-manager/src/main/bin/start.sh
+1
-1
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableColumnEntityExt.java
...x/base/system/gentable/model/GentableColumnEntityExt.java
+2
-0
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableEntityExt.java
...als/xhx/base/system/gentable/model/GentableEntityExt.java
+2
-0
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/GentableColumnService.java
...x/base/system/gentable/service/GentableColumnService.java
+3
-0
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
...ase/system/gentable/service/impl/GentableServiceImpl.java
+6
-3
appbuild-manager/src/main/resources/sqlmap/base/system/gentableColumn.xml
.../src/main/resources/sqlmap/base/system/gentableColumn.xml
+1
-1
No files found.
appbuild-manage-ui/admin/src/views/system/gentable/list.vue
View file @
68c31921
...
...
@@ -259,6 +259,7 @@ export default {
const
appId
=
this
.
$route
.
query
[
"
query.appId
"
];
console
.
log
(
"
appId
"
,
appId
);
this
.
appId
=
appId
;
this
.
upload
.
url
=
this
.
upload
.
url
+
this
.
appId
//this.query={ appId: appId }
// this.config.addQuery = { appId: appId };
},
...
...
@@ -332,7 +333,7 @@ export default {
this
.
loading
=
true
;
if
(
this
.
genCodeDialog
.
tableName
)
{
this
.
$download
(
"
/gentable/genCode
"
,
{
...
...
@@ -470,12 +471,13 @@ export default {
_this
.
toDel
(
tableIds
,
true
);
})
.
then
(()
=>
{
this
.
getList
();
_this
.
getData
();
});
},
handleImportExcel
()
{
this
.
upload
.
title
=
"
导入
"
;
this
.
upload
.
url
+=
this
.
appId
;
console
.
log
(
"
appId:
"
,
this
.
appId
)
//this.upload.url = this.upload.url+ this.appId;
this
.
upload
.
open
=
true
;
},
// 文件上传中处理
...
...
@@ -492,7 +494,6 @@ export default {
},
// 提交上传文件
submitFileForm
()
{
console
.
log
(
1111
);
this
.
$refs
.
upload
.
submit
();
},
},
...
...
@@ -508,10 +509,11 @@ export default {
{
name
:
"
应用信息
"
,
path
:
"
/app/list
"
},
{
name
:
"
生成列表
"
},
],
appId
:
null
,
all
:
"
1
"
,
model
:
"
0
"
,
appId
:
null
,
// 用户导入参数
model
:
"
0
"
,
upload
:
{
// 是否显示弹出层(用户导入)
open
:
false
,
...
...
@@ -555,11 +557,9 @@ export default {
activeName
:
"
vo.java
"
,
},
docForm
:
{},
appId
:
null
,
config
:
{
search
:
[],
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
...
...
appbuild-manager/src/main/bin/start.sh
View file @
68c31921
...
...
@@ -69,7 +69,7 @@ EXTRA_JVM_ARGUMENTS=""
cd
"
$BASEDIR
/boot"
;
writelog
"starting application
$PROJECT_NAME
......"
nohup
"
$JAVACMD
"
$JAVA_OPTS
\
setid
"
$JAVACMD
"
$JAVA_OPTS
\
$EXTRA_JVM_ARGUMENTS
\
-Dapp
.name
=
"
$PROJECT_NAME
"
\
-Dapp
.port
=
"
$PORT
"
\
...
...
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableColumnEntityExt.java
View file @
68c31921
...
...
@@ -25,6 +25,8 @@ public class GentableColumnEntityExt extends BaseEntityLong {
private
List
<
Map
<
String
,
String
>>
dict
;
private
List
<
Long
>
idList
;
public
static
String
subComment
(
String
comment
)
{
...
...
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableEntityExt.java
View file @
68c31921
...
...
@@ -32,6 +32,8 @@ public class GentableEntityExt extends BaseEntityLong {
private
String
path
;
private
List
<
Long
>
idList
;
/**
* 表列信息
*/
...
...
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/GentableColumnService.java
View file @
68c31921
...
...
@@ -2,6 +2,7 @@ package com.mortals.xhx.base.system.gentable.service;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.base.system.gentable.dao.GentableColumnDao
;
import
com.mortals.xhx.base.system.gentable.model.GentableColumnEntity
;
import
java.util.List
;
...
...
@@ -16,6 +17,8 @@ import java.util.List;
public
interface
GentableColumnService
extends
ICRUDService
<
GentableColumnEntity
,
Long
>
{
GentableColumnDao
getDao
();
/**
* 根据表名称查询列信息
*
...
...
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
View file @
68c31921
...
...
@@ -696,13 +696,16 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
@Override
protected
void
removeAfter
(
Long
[]
ids
,
Context
context
,
int
result
)
throws
AppException
{
Long
[]
colIds
=
gentableColumnService
.
find
(
new
GentableColumnQuery
().
tableIdList
(
Arrays
.
asList
(
ids
))).
stream
().
map
(
GentableColumnEntity:
:
getId
).
toArray
(
Long
[]::
new
);
gentableColumnService
.
remove
(
colIds
,
context
);
super
.
removeAfter
(
ids
,
context
,
result
);
GentableColumnQuery
condition
=
new
GentableColumnQuery
();
condition
.
setTableIdList
(
Arrays
.
asList
(
ids
));
gentableColumnService
.
getDao
().
delete
(
condition
);
// Long[] colIds = gentableColumnService.find(new GentableColumnQuery().tableIdList(Arrays.asList(ids))).stream().map(GentableColumnEntity::getId).toArray(Long[]::new);
// gentableColumnService.remove(colIds, context);
super
.
removeAfter
(
ids
,
context
,
result
);
}
private
String
genFreePath
(
String
temp
)
{
...
...
appbuild-manager/src/main/resources/sqlmap/base/system/gentableColumn.xml
View file @
68c31921
...
...
@@ -497,7 +497,7 @@
</delete>
<!-- 根据paramDto删除一批 -->
<delete
id=
"deleteByMap"
parameterType=
"paramDto"
>
delete
a.*
from mortals_xhx_gentable_column as a
delete from mortals_xhx_gentable_column as a
<trim
suffixOverrides=
"where"
suffix=
""
>
where
<trim
prefixOverrides=
"and"
prefix=
""
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment