Commit 06b55c33 authored by 韩桐桐's avatar 韩桐桐

fix(tcm):人员保存,更改必填项提示语

parent 99667f14
......@@ -110,13 +110,13 @@ public class TzsUserPermissionServiceImpl extends BaseService<TzsUserPermissionD
String otherItem = String.valueOf(itempermissionData6552.get("otherItem"));
JSONObject itemCode = JSON.parseObject(String.valueOf(itempermissionData6552.get("itemCode")));
if (jobItem.contains("金属焊接操作") && ObjectUtils.isEmpty(itemCode.get("JSHJCZItemCode"))) {
throw new BadRequest("金属焊接操作-项目代号是必填的");
throw new BadRequest("作业项目中含有金属焊接操作,需填写金属焊接操作-项目代号");
}
if (jobItem.contains("非金属焊接操作") && ObjectUtils.isEmpty(itemCode.get("FJSHJCZItemCode"))) {
throw new BadRequest("非金属焊接操作-项目代号是必填的");
throw new BadRequest("作业项目中含有非金属焊接操作,需填写非金属焊接操作-项目代号");
}
if (jobItem.contains("其他") && ObjectUtils.isEmpty(otherItem)) {
throw new BadRequest("其他作业项目是必填的");
throw new BadRequest("作业项目中含有其他,需填写其他作业项目");
}
tzsUserPermissions.add(buildPermission(ZYRY_TYPE, itempermissionData6552, userInfoDto));
});
......
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