车辆的增加status判断

This commit is contained in:
2025-08-04 23:31:21 +08:00
parent 3311410329
commit 8f15c0cc6f

View File

@ -29,7 +29,8 @@ public class CarServiceImpl implements CarService {
queryWrapper.eq(StringUtils.isNotBlank(req.getLicensePlate()),CarPO::getLicensePlate, req.getLicensePlate()) queryWrapper.eq(StringUtils.isNotBlank(req.getLicensePlate()),CarPO::getLicensePlate, req.getLicensePlate())
.eq(StringUtils.isNotBlank(req.getVin()),CarPO::getVin, req.getVin()) .eq(StringUtils.isNotBlank(req.getVin()),CarPO::getVin, req.getVin())
.eq(Objects.nonNull(req.getCarId()),CarPO::getId, req.getCarId()) .eq(Objects.nonNull(req.getCarId()),CarPO::getId, req.getCarId())
.eq(CarPO::getDelFlag, "0") .eq(CarPO::getDelFlag, "0")
.eq(CarPO::getStatus, "0")
.last(" limit 1"); .last(" limit 1");
CarPO carPO = carRepo.getOne(queryWrapper); CarPO carPO = carRepo.getOne(queryWrapper);
return CarConvert.INSTANCE.poToDto(carPO); return CarConvert.INSTANCE.poToDto(carPO);