Commit 54251f50 by 徐高华

Merge branch 'ferture/四月迭代需求' into 'master'

test

See merge request !1207
parents 49b6849e 2688fbc0
...@@ -158,7 +158,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -158,7 +158,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
String storeId = clerkRelation.getStoreId() ; String storeId = clerkRelation.getStoreId() ;
boolean needFlush = false ; boolean needFlush = false ;
boolean delFlag = true ; boolean delFlag = true ;
boolean newClerkIdFlag = StringUtils.isNotEmpty(newClerkId) ;
if(StringUtils.isEmpty(newClerkId)) { if(StringUtils.isEmpty(newClerkId)) {
// 成员关联的门店 // 成员关联的门店
List<StaffClerkRelationDTO> relationList = this.listByStaffId(wxEnterpriseId, staffId) ; List<StaffClerkRelationDTO> relationList = this.listByStaffId(wxEnterpriseId, staffId) ;
...@@ -207,11 +206,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -207,11 +206,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
if(delFlag) { if(delFlag) {
this.mapper.changeStatusByClerkId(oldClerkId, 0); this.mapper.changeStatusByClerkId(oldClerkId, 0);
} }
if(newClerkIdFlag) {
logger.info("换门店后,查询主门店,newClerkId={}",newClerkId);
// 设置主门店
this.clerkMainStoreRelatedService.getMainStoreByStaffId(staffId, wxEnterpriseId, null) ;
}
if(StringUtils.isNotBlank(newClerkId)) { if(StringUtils.isNotBlank(newClerkId)) {
List<String> memberIdList = this.externalClerkRelatedMapper.listByClerkId(staffId, oldClerkId) ; List<String> memberIdList = this.externalClerkRelatedMapper.listByClerkId(staffId, oldClerkId) ;
this.externalClerkRelatedService.updateClerkInfo(staffId , oldClerkId , newClerkId) ; this.externalClerkRelatedService.updateClerkInfo(staffId , oldClerkId , newClerkId) ;
......
...@@ -561,6 +561,9 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe ...@@ -561,6 +561,9 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
logger.info("绑定结果正常:{},{}", JSONObject.toJSONString(response), oldRelationDTO.getClerkId()); logger.info("绑定结果正常:{},{}", JSONObject.toJSONString(response), oldRelationDTO.getClerkId());
if (response == null) { if (response == null) {
this.staffClerkRelationService.insert(oldRelationDTO); this.staffClerkRelationService.insert(oldRelationDTO);
logger.info("换门店后,查询主门店,newClerkId={}",oldRelationDTO.getStaffId());
// 设置主门店
this.clerkMainStoreRelatedService.getMainStoreByStaffId(oldRelationDTO.getStaffId(), oldRelationDTO.getWxEnterpriseId(), null) ;
} }
/*} else { /*} else {
String oldClerkId = oldRelationDTO.getClerkId(); String oldClerkId = oldRelationDTO.getClerkId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment