Commit 6359ae6e by 墨竹

refactor:设置主门店bug修复

parent ab54fbeb
package com.gic.haoban.manage.service.service;
import com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated;
import java.util.List;
import java.util.Set;
import com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated;
public interface ClerkMainStoreRelatedService {
void setMainStore(String staffId, String storeId, String wxEnterpriseId);
......@@ -27,7 +27,7 @@ public interface ClerkMainStoreRelatedService {
* @param storeId
* @param wxEnterpriseId
*/
void delMainStore(String staffId, String storeId, String wxEnterpriseId);
TabHaobanClerkMainStoreRelated delMainStore(String staffId, String storeId, String wxEnterpriseId);
/**
* 根据门店列表 删除主门店
......
......@@ -84,7 +84,7 @@ public class ClerkMainStoreRelatedServiceImpl implements ClerkMainStoreRelatedSe
StaffClerkRelationDTO staffClerkRelationDTO = staffClerkRelationService.getOneBindByStoreId(staffId, storeId);
if (staffClerkRelationDTO == null) {
logger.info("该主门店无绑定关系,重新绑定,staffId:{},storeId:{}", staffId, storeId);
delMainStore(staffId, storeId, wxEnterpriseId);
return delMainStore(staffId, storeId, wxEnterpriseId);
}
return mainStoreRelated;
}
......@@ -116,13 +116,13 @@ public class ClerkMainStoreRelatedServiceImpl implements ClerkMainStoreRelatedSe
}
@Override
public void delMainStore(String staffId, String storeId, String wxEnterpriseId) {
public TabHaobanClerkMainStoreRelated delMainStore(String staffId, String storeId, String wxEnterpriseId) {
//删除主门店
mapper.delMainStore(staffId, storeId, wxEnterpriseId);
//删除主门店外部联系人 好友
externalClerkRelatedService.delByStoreIdAndStaffId(storeId, staffId);
//设置主门店
this.setStaffMainStore(staffId, wxEnterpriseId);
return this.setStaffMainStore(staffId, wxEnterpriseId);
}
@Override
......
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