mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 11:19:52 +08:00
update
This commit is contained in:
@@ -101,18 +101,10 @@ public class ChargeEndHandler extends AbstractHandler{
|
|||||||
length = 4;
|
length = 4;
|
||||||
byte[] pileChargedCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
byte[] pileChargedCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
|
||||||
|
|
||||||
// 查询订单,改为待结算 将结束soc传入
|
// 查询订单 将结束soc传入
|
||||||
OrderBasicInfo orderInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
OrderBasicInfo orderInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||||
if (Objects.nonNull(orderInfo)) {
|
if (Objects.nonNull(orderInfo)) {
|
||||||
Date nowDate = DateUtils.getNowDate(); // 当前时间
|
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();
|
OrderBasicInfo updateOrder = new OrderBasicInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user