Commit 0c1d469a by qwmqiuwenmin

Merge branch 'developer' into 'master'

fix

See merge request haoban3.0/haoban-manage3.0!52
parents bd2d58ef 178820ef
......@@ -250,6 +250,9 @@ public class DepartmentContoller extends WebBaseController{
if(dto == null || dto.getStatusFlag() == 0) {
return resultResponse(HaoBanErrCode.ERR_10003);
}
if(dto.getTempFlag() != null && dto.getTempFlag() == 1){
return resultResponse(HaoBanErrCode.ERR_100015);
}
ServiceResponse hr;
if(StringUtils.isBlank(dto.getRelatedId())) {
hr = departmentApiService.del(departmentId);
......
......@@ -86,6 +86,8 @@ public enum HaoBanErrCode {
ERR_10013(10013,"secret设置失败,请确认"),
ERR_10014(10014,"暂存部门人员不能删除"),
ERR_100015(100015,"暂存部门不能删除"),
ERR_DEFINE(-888, "自定义错误"),
ERR_OTHER(-999, "未知错误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