Commit 4ff4e835 by qwmqiuwenmin

fix

parent f46a4eda
......@@ -213,6 +213,8 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
//调微信的删除接口
TabHaobanDepartment department = departmentService.selectById(departmentId);
if(department == null){
hr.setErrorCode(0);
hr.setMessage("不存在部门,删除部门失败");
return hr;
}
WxEnterpriseDTO enterpriseDTO = wxEnterpriseService.selectById(department.getWxEnterpriseId());
......
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