mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-20 07:16:00 +08:00
update 预约充电
This commit is contained in:
@@ -82,11 +82,11 @@ public class ReservationChargingResponseHandler extends AbstractYkcHandler {
|
|||||||
if ("01".equals(resultCode)) {
|
if ("01".equals(resultCode)) {
|
||||||
// 预约成功, 删除redis中的预约信息
|
// 预约成功, 删除redis中的预约信息
|
||||||
String redisKey = CacheConstants.UPDATE_RESERVATION_INFO + pileSn + connectorCode;
|
String redisKey = CacheConstants.UPDATE_RESERVATION_INFO + pileSn + connectorCode;
|
||||||
JSON cacheObject = redisCache.getCacheObject(redisKey);
|
String cacheObject = redisCache.getCacheObject(redisKey);
|
||||||
log.info("预约充电-收到成功, redisKey:{}, result:{}", redisKey, cacheObject);
|
log.info("预约充电-收到成功, redisKey:{}, result:{}", redisKey, cacheObject);
|
||||||
if (cacheObject != null) {
|
if (cacheObject != null) {
|
||||||
log.info("修改预约充电相应成功, 更新数据库");
|
log.info("修改预约充电相应成功, 更新数据库");
|
||||||
PileReservationInfo pileReservationInfo = JSON.parseObject(cacheObject.toString(), PileReservationInfo.class);
|
PileReservationInfo pileReservationInfo = JSON.parseObject(cacheObject, PileReservationInfo.class);
|
||||||
pileReservationInfoService.insertOrUpdateSelective(pileReservationInfo);
|
pileReservationInfoService.insertOrUpdateSelective(pileReservationInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user