Commit 05bafe29 authored by 韩桐桐's avatar 韩桐桐

fix(jg):注释修改

parent 06e09d72
......@@ -98,7 +98,7 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
CompanyBo queryCompanyInfoByCode(String companyCode);
/**
* 车用气瓶登记业务办理里面的产品编号、识别代码等都要校验唯一性(产品编号在车用气瓶范围内全局唯一)
* 车用气瓶登记业务办理里面的 出厂编号/产品编码 要校验唯一性(产品编号在车用气瓶范围内全局唯一)
* @param factoryNum
* @return
*/
......
......@@ -165,14 +165,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
throw new LocalBadRequest("车牌号码已存在,请重新输入!");
}
// 【A109】 车用气瓶登记业务 车架号 校验唯一性
// 【A109】 车用气瓶登记业务 车辆VIN码 校验唯一性
LambdaQueryWrapper<JgVehicleInformation> informationLambdaQueryWrapper = new LambdaQueryWrapper<>();
informationLambdaQueryWrapper.eq(JgVehicleInformation::getIdentificationCode, vehicleInfoDto.getIdentificationCode());
informationLambdaQueryWrapper.eq(JgVehicleInformation::getIsDelete, false);
informationLambdaQueryWrapper.ne(!ValidationUtil.isEmpty(vehicleInfoDto.getSequenceNbr()), JgVehicleInformation::getSequenceNbr, vehicleInfoDto.getSequenceNbr());
Integer identificationCodeCount = this.baseMapper.selectCount(informationLambdaQueryWrapper);
if (identificationCodeCount > 0) {
throw new BadRequest("车架号已存在,请重新输入!");
throw new BadRequest("车辆VIN码已存在,请重新输入!");
}
// 使用单位信息
......
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