Commit c573d43d by qwmqiuwenmin

fix

parent 56b32b72
......@@ -46,4 +46,6 @@ public interface StaffApiService {
void initWxUser(String corpid, String suiteid, String wxEnterpriseId, Integer wxDepartmentId);
public List<String> listUnBindClerk(String storeId);
public void cleanGicClerk(String clerkCode, String departmentId);
}
......@@ -269,11 +269,14 @@ public class MessageApiServiceImpl implements MessageApiService {
}
} else {
TabHaobanStaff oldStaff = this.staffService.selectByUserId(qywxCallBackDTO.getUserid());
List<TabHaobanStaffDepartmentRelated> list = staffDepartmentRelatedService.listStaffDepartmentByStaffId(staff.getStaffId());
//List<TabHaobanStaffDepartmentRelated> list = staffDepartmentRelatedService.listStaffDepartmentByStaffId(staff.getStaffId());
if(oldStaff != null){
if(list != null && !list.isEmpty()){
this.staffApiService.del(list.get(0).getStaffDepartmentRelatedId());
}
this.staffService.delByuserid(oldStaff.getStaffId());
List<TabHaobanStaffDepartmentRelated> relatedList = staffDepartmentRelatedService.listStaffDepartmentByStaffId(oldStaff.getStaffId());
TabHaobanStaffDepartmentRelated staffRelated = relatedList.get(0);
if(StringUtils.isNotBlank(staffRelated.getClerkCode())){
staffApiService.cleanGicClerk(staffRelated.getClerkCode(), staffRelated.getDepartmentId());
}
}else {
log.info("微信同步删除的门店不存在,{}", qywxCallBackDTO.getUserid());
}
......
......@@ -242,7 +242,8 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
private void cleanGicClerk(String code,String departmentId){
@Override
public void cleanGicClerk(String code,String departmentId){
if(StringUtils.isNotBlank(code)){
TabHaobanDepartment department = departmentService.selectById(departmentId);
String enterpriseId = "";
......
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