Commit 28219b61 authored by hekaiwen's avatar hekaiwen

气瓶 校验制造单位统一信用代码与出场编码唯一

parent d9e3898f
......@@ -392,6 +392,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
checkFactoryNumUniqueness(equipmentInfoForm);
// 96333码 字段的唯一性校验
check96333Code(equipmentInfoForm);
// 气瓶 校验制造单位统一信用代码与出场编码唯一
if (equipmentInfoForm.get(EQU_LIST).equals("2000") && equipmentInfoForm.get(EQU_CATEGORY).equals("2300") && commonMapper.checkFactoryNumUnique(String.valueOf(equipmentInfoForm.get(FACTORY_NUM)), null, String.valueOf(equipmentInfoForm.get("PRODUCE_UNIT_CREDIT_CODE"))) > 0) {
throw new BadRequest("出厂编号/产品编码在该企业中已存在!");
}
} catch (Exception e) {
handleError(e, null);
}
......
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