车辆修改

This commit is contained in:
guoshengxiong 2024-05-28 16:51:09 +08:00
parent a5a671b607
commit bd5ec224ae
2 changed files with 10 additions and 2 deletions

View File

@ -1708,7 +1708,7 @@ public class HikvisionCall {
String parkIndexCode = projectParkCode; String parkIndexCode = projectParkCode;
hikvisionReservationCarInfo.setParkSyscode(parkIndexCode); hikvisionReservationCarInfo.setParkSyscode(parkIndexCode);
hikvisionReservationCarInfo.setPlateNo(carInfo.getCarNumber()); hikvisionReservationCarInfo.setPlateNo(carInfo.getCarNumber());
//hikvisionReservationCarInfo.setResvState(); hikvisionReservationCarInfo.setResvState(0L);
//hikvisionReservationCarInfo.setResvWay(); //hikvisionReservationCarInfo.setResvWay();
//hikvisionReservationCarInfo.setAllowTimes(); //hikvisionReservationCarInfo.setAllowTimes();
//hikvisionReservationCarInfo.setIsCharge(); //hikvisionReservationCarInfo.setIsCharge();

View File

@ -185,7 +185,15 @@ public class CarInfoServiceImpl extends ServiceImpl<CarInfoMapper, CarInfo> impl
if (notEqTime) { if (notEqTime) {
CarInfoApprovalFlow flow = new CarInfoApprovalFlow(); CarInfoApprovalFlow flow = new CarInfoApprovalFlow();
BeanUtil.copyProperties(carInfo, flow); BeanUtil.copyProperties(carInfo, flow);
carInfoApprovalFlowMapper.updateById(flow); carInfoApprovalFlowMapper.update(null, new LambdaUpdateWrapper<CarInfoApprovalFlow>()
.set(CarInfoApprovalFlow::getReserveStartTime, carInfo.getReserveStartTime())
.set(CarInfoApprovalFlow::getReserveEndTime, carInfo.getReserveEndTime())
.set(CarInfoApprovalFlow::getCarNumber, carInfo.getCarNumber())
.eq(CarInfoApprovalFlow::getReserveStartTime, old.getReserveStartTime())
.eq(CarInfoApprovalFlow::getReserveEndTime, old.getReserveEndTime())
.eq(CarInfoApprovalFlow::getCarNumber, old.getCarNumber())
.eq(CarInfoApprovalFlow::getProjectSn, old.getProjectSn())
);
} }
} }