车辆的增加status判断
This commit is contained in:
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user