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
d691fc03
Commit
d691fc03
authored
May 05, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改驼峰命名法
parent
082fdbba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
appbuild-manager/src/main/resources/template/java/entity-tree.java.ftl
...ger/src/main/resources/template/java/entity-tree.java.ftl
+1
-0
appbuild-manager/src/main/resources/template/java/webBody.java.ftl
...manager/src/main/resources/template/java/webBody.java.ftl
+28
-0
No files found.
appbuild-manager/src/main/resources/template/java/entity-tree.java.ftl
View file @
d691fc03
...
...
@@ -13,6 +13,7 @@ import com.alibaba.fastjson.JSONObject;
import
com
.
alibaba
.
fastjson
.
parser
.
DefaultJSONParser
;
import
com
.
alibaba
.
fastjson
.
parser
.
JSONToken
;
import
com
.
alibaba
.
fastjson
.
parser
.
deserializer
.
ObjectDeserializer
;
import
org
.
springframework
.
util
.
ObjectUtils
;
/**
*
${
functionName
}
前端映射树结构实体类
*
...
...
appbuild-manager/src/main/resources/template/java/webBody.java.ftl
View file @
d691fc03
...
...
@@ -58,6 +58,34 @@ public class ${ClassName}Controller extends BaseCRUDJsonBodyMappingController<${
<#
if
table
.
tplCategory
==
"tree"
>
@
PostMapping
(
"list/exclude"
)
public
String
excludeList
(@
RequestBody
${
ClassName
}
Entity
${
className
}
Entity
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
JSONObject
ret
=
new
JSONObject
();
String
busiDesc
=
"查询"
+
this
.
getModuleDesc
();
//
Long
id
=
form
.
getId
()[
0
];
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
List
<${
ClassName
}
Entity
>
collect
=
this
.
service
.
find
(
new
${
ClassName
}
Query
()).
stream
().
map
(
item
->
{
if
(
item
.
getId
().
intValue
()
==
${
className
}
Entity
.
getId
()
||
ArrayUtils
.
contains
(
StringUtils
.
split
(
item
.
getAncestors
(),
","
),
${
className
}
Entity
.
getId
()
+
""
))
{
return
null
;
}
return
item
;
}).
filter
(
f
->
f
!= null).collect(Collectors.toList());
model
.
put
(
"result"
,
collect
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
code
=
VALUE_RESULT_FAILURE
;
this
.
doException
(
request
,
busiDesc
,
model
,
e
);
}
ret
.
put
(
KEY_RESULT_DATA
,
model
);
ret
.
put
(
KEY_RESULT_CODE
,
code
);
return
ret
.
toJSONString
();
}
/**
*
获取站点下拉树列表
*/
...
...
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