Commit 68775c92 by 墨竹

fix:删除解绑

parent 3aaf75ea
......@@ -312,12 +312,20 @@ public class MessageApiServiceImpl implements MessageApiService {
log.info("微信成员同步删除的门店不存在,{}", userid);
return;
}
String staffId = oldStaff.getStaffId();
//销毁卡券
innerApiService.delCardByStaffId(oldStaff.getStaffId());
innerApiService.delCardByStaffId(staffId);
//删除导购好友关联关系表
this.staffDepartmentRelatedService.delByUserid(userid);
//删除员工表
this.staffService.delByStaffId(oldStaff.getStaffId());
this.staffService.delByStaffId(staffId);
List<StaffClerkInfoDTO> staffClerkInfoDTOS = staffClerkRelationApiService.listBindDetailByStaffId(staffId);
if (CollectionUtils.isNotEmpty(staffClerkInfoDTOS)) {
for (StaffClerkInfoDTO staffClerkInfoDTO : staffClerkInfoDTOS) {
staffClerkRelationApiService.unbindByStaffAndClerkId(staffId,staffClerkInfoDTO.getClerkId());
}
}
}
log.error("成员同步结束");
}
......
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