mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 预约充电
This commit is contained in:
@@ -66,7 +66,7 @@ public interface PileReservationInfoService {
|
||||
|
||||
void updateReservationStatus(PileReservationDTO dto);
|
||||
|
||||
void updateReservation(PileReservationDTO dto);
|
||||
int updateReservation(PileReservationDTO dto);
|
||||
|
||||
void personPileStopCharging(PersonPileStopChargingDTO dto);
|
||||
|
||||
|
||||
@@ -407,10 +407,10 @@ public class PileReservationInfoServiceImpl implements PileReservationInfoServic
|
||||
* @param dto
|
||||
*/
|
||||
@Override
|
||||
public void updateReservation(PileReservationDTO dto) {
|
||||
public int updateReservation(PileReservationDTO dto) {
|
||||
PileReservationInfo pileReservationInfo = pileReservationInfoMapper.selectByPrimaryKey(Integer.valueOf(dto.getReservedId()));
|
||||
if (pileReservationInfo == null) {
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// 操作 0x01:启动 0x02:取消 0x03:修改
|
||||
@@ -473,8 +473,9 @@ public class PileReservationInfoServiceImpl implements PileReservationInfoServic
|
||||
.build();
|
||||
String result = pileRemoteService.reservationCharging(command);
|
||||
if (StringUtils.equals(result, Constants.ONE)) {
|
||||
this.insertOrUpdateSelective(pileReservationInfo);
|
||||
return this.insertOrUpdateSelective(pileReservationInfo);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user