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
25b70831
Commit
25b70831
authored
Aug 01, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-0808' into developer
parents
bd0a7901
f06cf027
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
24 deletions
+10
-24
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+9
-4
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+1
-4
StaffDepartmentRelatedApiServiceImpl.java
...ervice/out/impl/StaffDepartmentRelatedApiServiceImpl.java
+0
-16
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
25b70831
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
java.util.List
;
import
java.util.Set
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
...
@@ -10,6 +7,9 @@ import com.gic.haoban.manage.api.dto.StaffClerkBindLogDetailDTO;
...
@@ -10,6 +7,9 @@ import com.gic.haoban.manage.api.dto.StaffClerkBindLogDetailDTO;
import
com.gic.haoban.manage.api.dto.StaffClerkInfoDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkInfoDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
java.util.List
;
import
java.util.Set
;
public
interface
StaffClerkRelationApiService
{
public
interface
StaffClerkRelationApiService
{
/**
/**
* 绑定日志
* 绑定日志
...
@@ -39,7 +39,12 @@ public interface StaffClerkRelationApiService {
...
@@ -39,7 +39,12 @@ public interface StaffClerkRelationApiService {
StaffClerkRelationDTO
getByCodeAndEnterpriseId
(
String
clerkCode
,
String
enterpriseId
);
StaffClerkRelationDTO
getByCodeAndEnterpriseId
(
String
clerkCode
,
String
enterpriseId
);
/**
* 审核绑定
* @param staffClerkRelation
* @param optStaffId
* @param chanelCode
*/
void
delAndInsert
(
StaffClerkRelationDTO
staffClerkRelation
,
String
optStaffId
,
int
chanelCode
);
void
delAndInsert
(
StaffClerkRelationDTO
staffClerkRelation
,
String
optStaffId
,
int
chanelCode
);
/**
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
25b70831
...
@@ -295,10 +295,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
...
@@ -295,10 +295,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
staffClerkBindLogService
.
pushToMq
(
oldStaffClerkRelation
.
getStaffId
(),
optStaffId
,
BindTypeEnum
.
UNBIND
.
getVal
(),
chanelCode
,
staffClerkRelation
.
getStaffClerkRelationId
());
staffClerkBindLogService
.
pushToMq
(
oldStaffClerkRelation
.
getStaffId
(),
optStaffId
,
BindTypeEnum
.
UNBIND
.
getVal
(),
chanelCode
,
staffClerkRelation
.
getStaffClerkRelationId
());
clerkMainStoreRelatedService
.
delMainStore
(
oldStaffClerkRelation
.
getStaffId
(),
oldStaffClerkRelation
.
getStoreId
(),
oldStaffClerkRelation
.
getWxEnterpriseId
());
clerkMainStoreRelatedService
.
delMainStore
(
oldStaffClerkRelation
.
getStaffId
(),
oldStaffClerkRelation
.
getStoreId
(),
oldStaffClerkRelation
.
getWxEnterpriseId
());
}
}
String
relationId
=
staffClerkRelationService
.
insert
(
staffClerkRelation
);
staffClerkRelationService
.
bind
(
staffClerkRelation
,
optStaffId
,
chanelCode
);
staffClerkBindLogService
.
pushToMq
(
staffClerkRelation
.
getStaffId
(),
optStaffId
,
BindTypeEnum
.
BIND
.
getVal
(),
chanelCode
,
relationId
);
//设置主门店
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
staffClerkRelation
.
getStaffId
(),
staffClerkRelation
.
getWxEnterpriseId
());
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffDepartmentRelatedApiServiceImpl.java
View file @
25b70831
...
@@ -7,9 +7,7 @@ import com.gic.clerk.api.service.ClerkService;
...
@@ -7,9 +7,7 @@ import com.gic.clerk.api.service.ClerkService;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeQDTO
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
...
@@ -525,20 +523,6 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
...
@@ -525,20 +523,6 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
enterpriseId
,
staffId
,
clerkId
,
NoticeMessageTypeEnum
.
STORE_ACCOUNT_REFUSE
.
getType
(),
auditId
,
params
,
jsonObject
);
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
enterpriseId
,
staffId
,
clerkId
,
NoticeMessageTypeEnum
.
STORE_ACCOUNT_REFUSE
.
getType
(),
auditId
,
params
,
jsonObject
);
}
else
{
}
else
{
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
enterpriseId
,
staffId
,
clerkId
,
NoticeMessageTypeEnum
.
STORE_ACCOUNT_AGREE
.
getType
(),
auditId
,
params
,
jsonObject
);
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
enterpriseId
,
staffId
,
clerkId
,
NoticeMessageTypeEnum
.
STORE_ACCOUNT_AGREE
.
getType
(),
auditId
,
params
,
jsonObject
);
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffId
);
logger
.
info
(
"绑定自动创建活码,staffId:{}"
,
staffId
);
// 绑定自动创建活码
HmQrcodeQDTO
hmQrcodeQDTO
=
new
HmQrcodeQDTO
();
hmQrcodeQDTO
.
setHmType
(
1
);
hmQrcodeQDTO
.
setWxEnterpriseId
(
staffDTO
.
getWxEnterpriseId
());
hmQrcodeQDTO
.
setEnterpriseId
(
enterpriseId
);
hmQrcodeQDTO
.
setName
(
staffDTO
.
getStaffName
());
hmQrcodeQDTO
.
setPassFlag
(
1
);
hmQrcodeQDTO
.
setStoreId
(
clerkDTO
.
getStoreId
());
hmQrcodeQDTO
.
setClerkIdList
(
Collections
.
singletonList
(
clerkDTO
.
getClerkId
()));
hmQrcodeQDTO
.
setInvokingType
(
ChannelCodeEnum
.
AUDIT_BIND
.
getCode
());
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
}
}
}
}
...
...
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