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
9866304a
Commit
9866304a
authored
Feb 28, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加窗口无人值守
parent
5afb820d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
...als/xhx/module/window/service/impl/WindowServiceImpl.java
+8
-2
No files found.
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
View file @
9866304a
...
...
@@ -136,15 +136,21 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
windowBusinessQuery
.
setWindowIdList
(
Arrays
.
asList
(
ids
));
List
<
WindowBusinessEntity
>
windowBusinessEntities
=
windowBusinessService
.
find
(
windowBusinessQuery
);
log
.
info
(
"remove windowBusinessEntities size:{}"
,
windowBusinessEntities
.
size
());
if
(!
ObjectUtils
.
isEmpty
(
windowBusinessEntities
))
{
windowBusinessService
.
removeList
(
windowBusinessEntities
,
context
);
List
<
Long
>
idList
=
windowBusinessEntities
.
stream
().
map
(
item
->
item
.
getId
()).
collect
(
Collectors
.
toList
());
//windowBusinessService.removeList(windowBusinessEntities, context);
windowBusinessService
.
remove
(
idList
,
context
);
}
//级联删除窗口事项
WindowMatterQuery
windowMatterQuery
=
new
WindowMatterQuery
();
windowMatterQuery
.
setWindowIdList
(
Arrays
.
asList
(
ids
));
List
<
WindowMatterEntity
>
windowMatterEntities
=
windowMatterService
.
find
(
windowMatterQuery
);
log
.
info
(
"remove windowMatterEntities size:{}"
,
windowMatterEntities
.
size
());
if
(!
ObjectUtils
.
isEmpty
(
windowMatterEntities
))
{
windowMatterService
.
removeList
(
windowMatterEntities
,
context
);
List
<
Long
>
idList
=
windowMatterEntities
.
stream
().
map
(
item
->
item
.
getId
()).
collect
(
Collectors
.
toList
());
windowMatterService
.
remove
(
idList
,
context
);
//windowMatterService.removeList(windowMatterEntities, context);
}
}
Arrays
.
asList
(
ids
).
forEach
(
id
->
{
...
...
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