Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
d37cb5df
Commit
d37cb5df
authored
Oct 11, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多人活码
parent
c1de36f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
HmClerkRelationApiServiceImpl.java
...ce/service/out/impl/hm/HmClerkRelationApiServiceImpl.java
+6
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmClerkRelationApiServiceImpl.java
View file @
d37cb5df
...
...
@@ -48,18 +48,18 @@ public class HmClerkRelationApiServiceImpl implements HmClerkRelationApiService
hmQrcodeApiService
.
delById
(
hmQrcodeBO
.
getHmId
(),
invokingType
,
null
);
}
// 多人活码逻辑
List
<
HmClerkRelationBO
>
hmClerkRelation
BOS
=
hmClerkRelationService
.
queryByClerkId
(
clerkId
,
enterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
hmClerkRelationBOS
))
{
logger
.
info
(
"无多人活码"
);
List
<
HmClerkRelationBO
>
hmClerkRelation
List
=
hmClerkRelationService
.
queryByClerkId
(
clerkId
,
enterpriseId
);
logger
.
info
(
"无多人活码,newClerkId={}"
,
newClerkId
);
if
(
CollectionUtils
.
isEmpty
(
hmClerkRelationList
))
{
return
ServiceResponse
.
success
();
}
if
(
StringUtils
.
isNotBlank
(
newClerkId
))
{
this
.
hmClerkRelationService
.
updateByClerkChangeStore
(
enterpriseId
,
clerkId
,
newClerkId
);
}
else
{
for
(
HmClerkRelationBO
hmClerkRelationBO
:
hmClerkRelationBOS
)
{
Long
hmId
=
hmClerkRelationBO
.
getHmId
();
for
(
HmClerkRelationBO
item
:
hmClerkRelationList
)
{
Long
hmId
=
item
.
getHmId
();
List
<
String
>
clerkIds
=
hmClerkRelationService
.
getClerkIdByHmId
(
hmId
);
hmClerkRelationService
.
updateStatusById
(
0
,
hmClerkRelationBO
.
getRelationId
());
hmClerkRelationService
.
updateStatusById
(
0
,
item
.
getRelationId
());
clerkIds
.
remove
(
clerkId
);
if
(
CollectionUtils
.
isNotEmpty
(
clerkIds
))
{
// 更新活码
...
...
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