Commit 159ada86 authored by 韩桐桐's avatar 韩桐桐

fix(jg):编辑设备在使用登记单位办理时不进行校验

parent bfcc62f7
...@@ -185,8 +185,13 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste ...@@ -185,8 +185,13 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if (count > 0) { if (count > 0) {
throw new LocalBadRequest("设备代码已存在,请重新输入!"); throw new LocalBadRequest("设备代码已存在,请重新输入!");
} }
// 使用登记按照单位办理除外,其余进行编辑校验
Object manageType = equipmentInfoForm.get("manageType");
boolean isManageType = (!ObjectUtils.isEmpty(manageType) && "unit".equals(manageType));
if (!isManageType) {
// 编辑校验 // 编辑校验
this.checkForEquipEdit(equipmentInfoForm.get("RECORD")); this.checkForEquipEdit(equipmentInfoForm.get("RECORD"));
}
//操作类型 //操作类型
try { try {
//保存数据 //保存数据
......
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