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
febeb799
Commit
febeb799
authored
Feb 16, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据业务查询部门逻辑
parent
be4fc0cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
base-manager/src/main/java/com/mortals/xhx/busiz/web/DemoWebApiController.java
.../java/com/mortals/xhx/busiz/web/DemoWebApiController.java
+13
-13
No files found.
base-manager/src/main/java/com/mortals/xhx/busiz/web/DemoWebApiController.java
View file @
febeb799
...
...
@@ -116,6 +116,7 @@ public class DemoWebApiController {
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
deptName
));
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
deptEntity
.
getId
()
!=
windowEntity
.
getDeptId
())
{
log
.
info
(
"部门:{},更新部门id:orgin deptId:{} ,updateDeptId:{}"
,
deptName
,
windowEntity
.
getDeptId
(),
deptEntity
.
getId
());
windowEntity
.
setDeptId
(
deptEntity
.
getId
());
windowService
.
update
(
windowEntity
);
}
...
...
@@ -124,25 +125,24 @@ public class DemoWebApiController {
//更新窗口事项中的部门id
List
<
WindowMatterEntity
>
windowMatterEntities
=
windowMatterService
.
find
(
new
WindowMatterQuery
());
for
(
WindowMatterEntity
windowMatterEntity
:
windowMatterEntities
)
{
if
(!
ObjectUtils
.
isEmpty
(
windowMatterEntity
.
getDeptCode
())){
DeptEntity
extCache
=
deptService
.
getExtCache
(
windowMatterEntity
.
getDeptCode
());
if
(
!
ObjectUtils
.
isEmpty
(
extCache
))
{
if
(
extCache
.
getId
()
!=
windowMatterEntity
.
getDeptId
())
{
windowMatterEntity
.
setDeptId
(
extCache
.
getId
());
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
windowMatterEntity
.
getDeptName
()));
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
deptEntity
.
getId
()
!=
windowMatterEntity
.
getDeptId
(
))
{
windowMatterEntity
.
setDeptId
(
deptEntity
.
getId
());
windowMatterEntity
.
setDeptCode
(
deptEntity
.
getDeptNumber
());
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
())
{
siteMatterEntity
.
setDeptId
(
extCache
.
getId
());
if
(
ObjectUtils
.
isEmpty
(
siteMatterEntity
.
getDeptCode
()))
continue
;
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
siteMatterEntity
.
getDeptName
()));
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
deptEntity
.
getId
()
!=
siteMatterEntity
.
getDeptId
())
{
siteMatterEntity
.
setDeptId
(
deptEntity
.
getId
());
siteMatterEntity
.
setDeptCode
(
deptEntity
.
getDeptNumber
());
siteMatterService
.
update
(
siteMatterEntity
);
}
}
...
...
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