Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
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
赵啸非
sample-form-platform
Commits
2ba9179c
Commit
2ba9179c
authored
Dec 09, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加材料数量统计
parent
ee4aeda8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
sample-form-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
.../java/com/mortals/xhx/module/home/web/HomeController.java
+25
-0
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/module/home/web/HomeController.java
View file @
2ba9179c
...
...
@@ -154,6 +154,31 @@ public class HomeController extends BaseJsonBodyController {
return
ret
;
}
@PostMapping
({
"depts"
})
@UnAuth
public
Rest
<
Object
>
depts
(
@RequestBody
HomeQueryPdu
queryPdu
)
{
Rest
<
Object
>
ret
=
new
Rest
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
String
busiDesc
=
"查询站点部门"
;
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
if
(
queryPdu
.
getSiteId
()
!=
null
)
{
Map
<
String
,
String
>
deptMap
=
matterService
.
find
(
new
MatterQuery
().
siteId
(
queryPdu
.
getSiteId
())).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getDeptCode
(),
y
->
y
.
getDeptName
(),
(
o
,
n
)
->
n
));
model
.
put
(
"deptMap"
,
deptMap
);
}
model
.
put
(
"deptMap"
,
new
HashMap
<>());
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
var9
)
{
code
=
VALUE_RESULT_FAILURE
;
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var9
);
}
ret
.
setCode
(
code
);
ret
.
setData
(
model
);
ret
.
setMsg
(
model
.
get
(
"message_info"
)
==
null
?
""
:
model
.
remove
(
"message_info"
).
toString
());
return
ret
;
}
@PostMapping
({
"info"
})
@UnAuth
...
...
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