Commit 178820ef by qwmqiuwenmin

fix

parent abdfae12
...@@ -250,6 +250,9 @@ public class DepartmentContoller extends WebBaseController{ ...@@ -250,6 +250,9 @@ public class DepartmentContoller extends WebBaseController{
if(dto == null || dto.getStatusFlag() == 0) { if(dto == null || dto.getStatusFlag() == 0) {
return resultResponse(HaoBanErrCode.ERR_10003); return resultResponse(HaoBanErrCode.ERR_10003);
} }
if(dto.getTempFlag() != null && dto.getTempFlag() == 1){
return resultResponse(HaoBanErrCode.ERR_100015);
}
ServiceResponse hr; ServiceResponse hr;
if(StringUtils.isBlank(dto.getRelatedId())) { if(StringUtils.isBlank(dto.getRelatedId())) {
hr = departmentApiService.del(departmentId); hr = departmentApiService.del(departmentId);
......
...@@ -87,6 +87,8 @@ public enum HaoBanErrCode { ...@@ -87,6 +87,8 @@ public enum HaoBanErrCode {
ERR_10014(10014,"暂存部门人员不能删除"), ERR_10014(10014,"暂存部门人员不能删除"),
ERR_100015(100015,"暂存部门不能删除"),
ERR_DEFINE(-888, "自定义错误"), ERR_DEFINE(-888, "自定义错误"),
ERR_OTHER(-999, "未知错误code"); ERR_OTHER(-999, "未知错误code");
private int code; private int code;
......
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