Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_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
赵啸非
smart_gov_platform
Commits
be4fc0cd
Commit
be4fc0cd
authored
Feb 16, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据业务查询部门逻辑
parent
05b9f110
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
base-manager/src/main/java/com/mortals/xhx/busiz/web/DemoWebApiController.java
.../java/com/mortals/xhx/busiz/web/DemoWebApiController.java
+9
-5
base-manager/src/test/java/com/mortals/httpclient/system/system.http
...r/src/test/java/com/mortals/httpclient/system/system.http
+8
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/busiz/web/DemoWebApiController.java
View file @
be4fc0cd
...
...
@@ -124,17 +124,21 @@ public class DemoWebApiController {
//更新窗口事项中的部门id
List
<
WindowMatterEntity
>
windowMatterEntities
=
windowMatterService
.
find
(
new
WindowMatterQuery
());
for
(
WindowMatterEntity
windowMatterEntity
:
windowMatterEntities
)
{
DeptEntity
extCache
=
deptService
.
getExtCache
(
windowMatterEntity
.
getDeptCode
());
if
(!
ObjectUtils
.
isEmpty
(
extCache
))
{
if
(
extCache
.
getId
()
!=
windowMatterEntity
.
getDeptId
())
{
windowMatterEntity
.
setDeptId
(
extCache
.
getId
());
windowMatterService
.
update
(
windowMatterEntity
);
if
(!
ObjectUtils
.
isEmpty
(
windowMatterEntity
.
getDeptCode
())){
DeptEntity
extCache
=
deptService
.
getExtCache
(
windowMatterEntity
.
getDeptCode
());
if
(!
ObjectUtils
.
isEmpty
(
extCache
))
{
if
(
extCache
.
getId
()
!=
windowMatterEntity
.
getDeptId
())
{
windowMatterEntity
.
setDeptId
(
extCache
.
getId
());
windowMatterService
.
update
(
windowMatterEntity
);
}
}
}
}
List
<
SiteMatterEntity
>
siteMatterEntities
=
siteMatterService
.
find
(
new
SiteMatterQuery
());
for
(
SiteMatterEntity
siteMatterEntity
:
siteMatterEntities
)
{
if
(
ObjectUtils
.
isEmpty
(
siteMatterEntity
.
getDeptCode
()))
continue
;
DeptEntity
extCache
=
deptService
.
getExtCache
(
siteMatterEntity
.
getDeptCode
());
if
(!
ObjectUtils
.
isEmpty
(
extCache
))
{
if
(
extCache
.
getId
()
!=
siteMatterEntity
.
getDeptId
())
{
...
...
base-manager/src/test/java/com/mortals/httpclient/system/system.http
View file @
be4fc0cd
...
...
@@ -71,6 +71,14 @@ Content-Type: application/json
}
###testre
POST {{baseUrl}}/test/reDepts
Content-Type: application/json
{}
###短信设置编辑
GET {{baseUrl}}/sms/set/edit?id={{SmsSet_id}}
Accept: application/json
...
...
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