update 蓝牙小程序订单将停止原因码存入数据库

This commit is contained in:
Lemon
2025-02-26 15:16:25 +08:00
parent 66add2fa3d
commit b1ba4d444f
2 changed files with 67 additions and 0 deletions

View File

@@ -1498,6 +1498,7 @@ public class OrderService {
if (StringUtils.isNotBlank(dto.getStopReason())) {
int i = Integer.parseInt(dto.getStopReason(), 16);
String stopReasonMsg = YKCChargingStopReasonEnum.getMsgByCode(i);
record.setStopReasonCode(dto.getStopReason()); // 故障原因码
record.setReason(stopReasonMsg);
}
record.setTradeDate(DateUtils.parseDate(dto.getTradeTime()));