mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -101,18 +101,10 @@ public class ChargeEndHandler extends AbstractHandler{
|
||||
length = 4;
|
||||
byte[] pileChargedCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
||||
|
||||
// 查询订单,改为待结算 将结束soc传入
|
||||
// 查询订单 将结束soc传入
|
||||
OrderBasicInfo orderInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||
if (Objects.nonNull(orderInfo)) {
|
||||
Date nowDate = DateUtils.getNowDate(); // 当前时间
|
||||
// if (StringUtils.equals(OrderStatusEnum.IN_THE_CHARGING.getValue(), orderInfo.getOrderStatus())) {
|
||||
// orderInfo.setOrderStatus(OrderStatusEnum.STAY_SETTLEMENT.getValue());
|
||||
// }
|
||||
// orderInfo.setEndSoc(stopSoc);
|
||||
// if (orderInfo.getChargeEndTime() == null) {
|
||||
// orderInfo.setChargeEndTime(nowDate); // 结束充电时间
|
||||
// }
|
||||
// orderBasicInfoService.updateOrderBasicInfo(orderInfo);
|
||||
|
||||
// 只更新个别字段
|
||||
OrderBasicInfo updateOrder = new OrderBasicInfo();
|
||||
|
||||
Reference in New Issue
Block a user