Commit d60eb398 authored by suhuiguang's avatar suhuiguang

1.bug车架号已存在,请重新输入-htt

parent 17ec4513
...@@ -168,6 +168,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -168,6 +168,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
LambdaQueryWrapper<JgVehicleInformation> informationLambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<JgVehicleInformation> informationLambdaQueryWrapper = new LambdaQueryWrapper<>();
informationLambdaQueryWrapper.eq(JgVehicleInformation::getIdentificationCode, vehicleInfoDto.getIdentificationCode()); informationLambdaQueryWrapper.eq(JgVehicleInformation::getIdentificationCode, vehicleInfoDto.getIdentificationCode());
informationLambdaQueryWrapper.eq(JgVehicleInformation::getIsDelete, false); informationLambdaQueryWrapper.eq(JgVehicleInformation::getIsDelete, false);
informationLambdaQueryWrapper.ne(!ValidationUtil.isEmpty(vehicleInfoDto.getSequenceNbr()), JgVehicleInformation::getSequenceNbr, vehicleInfoDto.getSequenceNbr());
Integer identificationCodeCount = this.baseMapper.selectCount(informationLambdaQueryWrapper); Integer identificationCodeCount = this.baseMapper.selectCount(informationLambdaQueryWrapper);
if (identificationCodeCount > 0) { if (identificationCodeCount > 0) {
throw new BadRequest("车架号已存在,请重新输入!"); throw new BadRequest("车架号已存在,请重新输入!");
......
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