Commit ef0d3c52 by qwmqiuwenmin

fix

parent 8b120a02
......@@ -269,8 +269,11 @@ public class MessageApiServiceImpl implements MessageApiService {
}
} else {
TabHaobanStaff oldStaff = this.staffService.selectByUserId(qywxCallBackDTO.getUserid());
List<TabHaobanStaffDepartmentRelated> list = staffDepartmentRelatedService.listStaffDepartmentByStaffId(staff.getStaffId());
if(oldStaff != null){
this.staffService.delByuserid(oldStaff.getStaffId());
if(list != null && !list.isEmpty()){
this.staffApiService.del(list.get(0).getStaffDepartmentRelatedId());
}
}else {
log.info("微信同步删除的门店不存在,{}", qywxCallBackDTO.getUserid());
}
......
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