Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-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
赵啸非
attendance-performance-platform
Commits
13157e9e
Commit
13157e9e
authored
Jan 27, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加窗口人员查询
parent
ec3f71a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowOwnerServiceImpl.java
...hx/module/window/service/impl/WindowOwnerServiceImpl.java
+3
-9
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowOwnerServiceImpl.java
View file @
13157e9e
...
...
@@ -166,7 +166,7 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
protected
void
saveAfter
(
WindowOwnerEntity
entity
,
Context
context
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getWindowOwnerDetailList
()))
{
entity
.
getWindowOwnerDetailList
().
stream
().
peek
(
item
->
{
item
.
setOwnerId
(
entity
.
getId
());
item
.
setOwnerId
(
entity
.
get
Staff
Id
());
item
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
item
.
setCreateTime
(
new
Date
());
}).
count
();
...
...
@@ -178,10 +178,10 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
@Override
protected
void
updateAfter
(
WindowOwnerEntity
entity
,
Context
context
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getWindowOwnerDetailList
()))
{
Long
[]
windowOwnerDetailIds
=
windowOwnerDetailService
.
find
(
new
WindowOwnerDetailQuery
().
ownerId
(
entity
.
getId
())).
stream
().
map
(
WindowOwnerDetailEntity:
:
getId
).
toArray
(
Long
[]::
new
);
Long
[]
windowOwnerDetailIds
=
windowOwnerDetailService
.
find
(
new
WindowOwnerDetailQuery
().
ownerId
(
entity
.
get
Staff
Id
())).
stream
().
map
(
WindowOwnerDetailEntity:
:
getId
).
toArray
(
Long
[]::
new
);
windowOwnerDetailService
.
remove
(
windowOwnerDetailIds
,
context
);
entity
.
getWindowOwnerDetailList
().
stream
().
peek
(
item
->
{
item
.
setOwnerId
(
entity
.
getId
());
item
.
setOwnerId
(
entity
.
get
Staff
Id
());
item
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
item
.
setCreateTime
(
new
Date
());
item
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
...
...
@@ -192,10 +192,4 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
super
.
updateAfter
(
entity
,
context
);
}
@Override
protected
void
removeAfter
(
Long
[]
ids
,
Context
context
,
int
result
)
throws
AppException
{
List
<
WindowOwnerDetailEntity
>
windowOwnerDetaillist
=
windowOwnerDetailService
.
find
(
new
WindowOwnerDetailQuery
().
ownerIdList
(
Arrays
.
asList
(
ids
)));
windowOwnerDetailService
.
removeList
(
windowOwnerDetaillist
,
context
);
super
.
removeAfter
(
ids
,
context
,
result
);
}
}
\ No newline at end of file
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