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
428ecc01
Commit
428ecc01
authored
Feb 22, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改前端生成页面
parent
00cddaf5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
322 deletions
+66
-322
appbuild-manager/src/main/bin/start.sh
appbuild-manager/src/main/bin/start.sh
+1
-1
appbuild-manager/src/main/resources/template/java/entityQuery.java.ftl
...ger/src/main/resources/template/java/entityQuery.java.ftl
+48
-0
appbuild-manager/src/main/resources/template/java/pdu.java.ftl
...ild-manager/src/main/resources/template/java/pdu.java.ftl
+5
-321
appbuild-manager/src/main/resources/template/xml/sqlMap.xml.ftl
...ld-manager/src/main/resources/template/xml/sqlMap.xml.ftl
+12
-0
No files found.
appbuild-manager/src/main/bin/start.sh
View file @
428ecc01
...
...
@@ -75,7 +75,7 @@ exec "$JAVACMD" $JAVA_OPTS \
-Dapp
.port
=
"
$PORT
"
\
-Dbasedir
=
"
$BASEDIR
"
\
-Djava
.io.tmpdir
=
$TEMP_PATH
\
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
n,address
=
6913
\
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
n,address
=
6913
\
个
大
-jar
$MAIN_CLASS
\
>
/dev/null &
...
...
appbuild-manager/src/main/resources/template/java/entityQuery.java.ftl
View file @
428ecc01
...
...
@@ -26,11 +26,16 @@ public class ${ClassName}Query extends ${ClassName}Entity {
/**
${
column
.
columnComment
}
列表
*/
private
List
<${
column
.
javaType
}>
${
column
.
javaField
}
List
;
/**
${
column
.
columnComment
}
排除列表
*/
private
List
<${
column
.
javaType
}>
${
column
.
javaField
}
NotList
;
</#
if
>
<#
if
column
.
javaType
==
"String"
>
/**
${
column
.
columnComment
}
*/
private
List
<${
column
.
javaType
}>
${
column
.
javaField
}
List
;
/**
${
column
.
columnComment
}
排除列表
*/
private
List
<${
column
.
javaType
}>
${
column
.
javaField
}
NotList
;
</#
if
>
<#
if
column
.
javaType
==
"Date"
>
/**
开始
${
column
.
columnComment
}
*/
...
...
@@ -115,6 +120,23 @@ public class ${ClassName}Query extends ${ClassName}Entity {
this
.${
column
.
javaField
}
List
=
${
column
.
javaField
}
List
;
}
/**
*
获取
${
column
.
columnComment
}
*
@
return
${
column
.
javaField
}
NotList
*/
public
List
<${
column
.
javaType
}>
get
${
column
.
javaField
?
cap_first
}
NotList
(){
return
this
.${
column
.
javaField
}
NotList
;
}
/**
*
设置
${
column
.
columnComment
}
*
@
param
${
column
.
javaField
}
NotList
*/
public
void
set
${
column
.
javaField
?
cap_first
}
NotList
(
List
<${
column
.
javaType
}>
${
column
.
javaField
}
NotList
){
this
.${
column
.
javaField
}
NotList
=
${
column
.
javaField
}
NotList
;
}
</#
if
>
<#
if
column
.
javaType
==
"String"
>
/**
...
...
@@ -132,6 +154,23 @@ public class ${ClassName}Query extends ${ClassName}Entity {
public
void
set
${
column
.
javaField
?
cap_first
}
List
(
List
<${
column
.
javaType
}>
${
column
.
javaField
}
List
){
this
.${
column
.
javaField
}
List
=
${
column
.
javaField
}
List
;
}
/**
*
获取
${
column
.
columnComment
}
*
@
return
${
column
.
javaField
}
NotList
*/
public
List
<${
column
.
javaType
}>
get
${
column
.
javaField
?
cap_first
}
NotList
(){
return
this
.${
column
.
javaField
}
NotList
;
}
/**
*
设置
${
column
.
columnComment
}
*
@
param
${
column
.
javaField
}
NotList
*/
public
void
set
${
column
.
javaField
?
cap_first
}
NotList
(
List
<${
column
.
javaType
}>
${
column
.
javaField
}
NotList
){
this
.${
column
.
javaField
}
NotList
=
${
column
.
javaField
}
NotList
;
}
</#
if
>
<#
if
column
.
javaType
==
"Date"
>
/**
...
...
@@ -214,6 +253,15 @@ public class ${ClassName}Query extends ${ClassName}Entity {
this
.${
column
.
javaField
}
List
=
${
column
.
javaField
}
List
;
return
this
;
}
/**
*
设置
${
column
.
columnComment
}
*
@
param
${
column
.
javaField
}
NotList
*/
public
${
ClassName
}
Query
${
column
.
javaField
}
NotList
(
List
<${
column
.
javaType
}>
${
column
.
javaField
}
NotList
){
this
.${
column
.
javaField
}
NotList
=
${
column
.
javaField
}
NotList
;
return
this
;
}
</#
if
>
<#
if
column
.
javaType
==
"String"
>
...
...
appbuild-manager/src/main/resources/template/java/pdu.java.ftl
View file @
428ecc01
This diff is collapsed.
Click to expand it.
appbuild-manager/src/main/resources/template/xml/sqlMap.xml.ftl
View file @
428ecc01
...
...
@@ -334,6 +334,12 @@
<
#noparse>#{item}
<
/#noparse>
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('${column.javaField}NotList')"
>
<
#noparse>${_conditionType_}
<
/#noparse> a.${column.columnName} not in
<foreach
collection=
"conditionParamRef.${column.javaField}NotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
<
#noparse>#{item}
<
/#noparse>
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('${column.javaField}Start') and conditionParamRef.${column.javaField}Start != null"
>
<
#noparse>${_conditionType_}
<
/#noparse> a.${column.columnName}
<![CDATA[ >= ]]>
<
#noparse>#{${_conditionParam_}
<
/#noparse>.${column.javaField}Start}
</if>
...
...
@@ -357,6 +363,12 @@
<
#noparse>#
<
/#noparse>{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('${column.javaField}NotList')"
>
<
#noparse>${_conditionType_}
<
/#noparse> a.${column.columnName} not in
<foreach
collection=
"conditionParamRef.${column.javaField}NotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
<
#noparse>#
<
/#noparse>{item}
</foreach>
</if>
<
/#if>
<
#if column.javaType == "Date">
<if
test=
"conditionParamRef.containsKey('${column.javaField}')"
>
...
...
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