Commit 30562b33 authored by 刘林's avatar 刘林

fix(JG):设备代码编辑报错

parent 866cfe10
......@@ -165,6 +165,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// 设备代码 字段的唯一性校验
LambdaQueryWrapper<RegistrationInfo> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(RegistrationInfo::getEquCode, equipmentInfoForm.get("EQU_CODE"));
wrapper.ne(!ValidationUtil.isEmpty(equipmentInfoForm.get("SEQUENCE_NBR")), RegistrationInfo::getSequenceNbr, equipmentInfoForm.get("SEQUENCE_NBR"));
Integer count = tzsJgRegistrationInfoMapper.selectCount(wrapper);
if (count > 0) {
throw new LocalBadRequest("设备代码已存在,请重新输入!");
......
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