Commit cec1b0c9 by qwmqiuwenmin

fix

parent e63114f6
......@@ -155,7 +155,11 @@ public class MessageApiServiceImpl implements MessageApiService {
if(department == null){
log.info("微信同步删除部门不存在");
}else {
this.departmentService.del(departmentDTO.getDepartmentId());
if(StringUtils.isBlank(department.getRelatedId())){
this.departmentService.del(departmentDTO.getDepartmentId());
}else{
this.departmentApiService.recycle(departmentDTO.getDepartmentId());
}
log.info("企业微信删除同步完成");
}
}
......
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