Commit a6005e45 by Your Name

更新部门下不能设置职位

parent 8446afb7
......@@ -332,10 +332,11 @@ public class ZzglController {
zzglBmgwM.setUpId(0);
}
ZzglBmgwM bmgwM = zzglBmgwMMapper.selectById(zzglBmgwM.getUpId());
if(bmgwM.getType() !=1){
if(bmgwM !=null) {
if (bmgwM.getType() != 1) {
return ResultUtil.error("部门名称上级不能为岗位");
}
}
if (zzglBmgwM.getLeader() == null && StrUtil.length(StrUtil.trim(zzglBmgwM.getName())) == 0)
return ResultUtil.error("部门名称不能为空");
......
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