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
5bc5d914
Commit
5bc5d914
authored
Feb 21, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转移自动创建活码
parent
1a484ef7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+16
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
5bc5d914
...
@@ -17,11 +17,13 @@ import com.gic.enterprise.api.service.StoreService;
...
@@ -17,11 +17,13 @@ import com.gic.enterprise.api.service.StoreService;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.dto.qdto.ClerkSyncQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.ClerkSyncQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.api.enums.AuditType
;
import
com.gic.haoban.manage.api.enums.AuditType
;
import
com.gic.haoban.manage.api.enums.BindTypeEnum
;
import
com.gic.haoban.manage.api.enums.BindTypeEnum
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.AuditApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.api.service.StaffClerkRelationApiService
;
import
com.gic.haoban.manage.api.service.hm.HmQrcodeApiService
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanStaffClerkRelationMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanStaffClerkRelationMapper
;
...
@@ -80,6 +82,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
...
@@ -80,6 +82,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
private
StoreRangeService
storeRangeService
;
private
StoreRangeService
storeRangeService
;
@Autowired
@Autowired
private
StaffMapper
staffMapper
;
private
StaffMapper
staffMapper
;
@Autowired
private
HmQrcodeApiService
hmQrcodeApiService
;
@Override
@Override
public
void
bindLogMq
(
String
params
)
{
public
void
bindLogMq
(
String
params
)
{
...
@@ -583,6 +587,18 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
...
@@ -583,6 +587,18 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
List
<
StaffClerkRelationDTO
>
relationList
=
this
.
listByStaffId
(
oldRelationDTO
.
getWxEnterpriseId
(),
oldRelationDTO
.
getStaffId
())
;
List
<
StaffClerkRelationDTO
>
relationList
=
this
.
listByStaffId
(
oldRelationDTO
.
getWxEnterpriseId
(),
oldRelationDTO
.
getStaffId
())
;
List
<
String
>
storeIdList
=
relationList
.
stream
().
map
(
o
->
o
.
getStoreId
()).
collect
(
Collectors
.
toList
())
;
List
<
String
>
storeIdList
=
relationList
.
stream
().
map
(
o
->
o
.
getStoreId
()).
collect
(
Collectors
.
toList
())
;
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
oldRelationDTO
.
getStaffId
(),
oldRelationDTO
.
getWxEnterpriseId
(),
storeIdList
)
;
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
oldRelationDTO
.
getStaffId
(),
oldRelationDTO
.
getWxEnterpriseId
(),
storeIdList
)
;
// 新增活码
HmQrcodeQDTO
hmQrcodeQDTO
=
new
HmQrcodeQDTO
();
hmQrcodeQDTO
.
setHmType
(
1
);
hmQrcodeQDTO
.
setWxEnterpriseId
(
oldRelationDTO
.
getWxEnterpriseId
());
hmQrcodeQDTO
.
setEnterpriseId
(
oldRelationDTO
.
getEnterpriseId
());
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
oldRelationDTO
.
getStaffId
())
;
hmQrcodeQDTO
.
setName
(
staff
.
getStaffName
());
hmQrcodeQDTO
.
setPassFlag
(
1
);
hmQrcodeQDTO
.
setStoreId
(
clerkSyncQDTO
.
getStoreId
());
hmQrcodeQDTO
.
setClerkIdList
(
Collections
.
singletonList
(
clerkSyncQDTO
.
getClerkId
()));
this
.
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
}
}
/*} else {
/*} else {
String oldClerkId = oldRelationDTO.getClerkId();
String oldClerkId = oldRelationDTO.getClerkId();
...
...
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