mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 调试订单接口
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jsowell.api.uniapp.customer;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.jsowell.adapay.dto.BalancePaymentRequestDTO;
|
||||
import com.jsowell.adapay.service.AdapayService;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
@@ -11,6 +12,7 @@ import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.pile.domain.*;
|
||||
import com.jsowell.pile.domain.ykcCommond.EBikeStartChargingCommand;
|
||||
import com.jsowell.pile.domain.ykcCommond.ReservationChargingCommand;
|
||||
@@ -767,9 +769,22 @@ public class TempController extends BaseController {
|
||||
public RestApiResponse<?> debugOrder(@RequestBody DebugOrderDTO dto) {
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
// 调试结算订单逻辑
|
||||
Map<String, Object> resultMap = tempService.debugOrder(dto);
|
||||
response = new RestApiResponse<>(resultMap);
|
||||
List<String> orderCodes = Lists.newArrayList();
|
||||
if (StringUtils.isNotBlank(dto.getOrderCode())) {
|
||||
orderCodes.add(dto.getOrderCode());
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(dto.getOrderCodeList())) {
|
||||
orderCodes.addAll(dto.getOrderCodeList());
|
||||
}
|
||||
|
||||
if (CollectionUtils.isEmpty(orderCodes)) {
|
||||
for (String orderCode : orderCodes) {
|
||||
dto.setOrderCode(orderCode);
|
||||
// 调试结算订单逻辑
|
||||
tempService.debugOrder(dto);
|
||||
}
|
||||
}
|
||||
response = new RestApiResponse<>();
|
||||
} catch (Exception e) {
|
||||
logger.error("调试结算订单逻辑V2error,", e);
|
||||
response = new RestApiResponse<>();
|
||||
|
||||
@@ -1178,7 +1178,7 @@ public class TempService {
|
||||
logger.info(reSplitFlagResult);
|
||||
}
|
||||
resultMap.put("reSplit", ImmutableMap.of("value", reSplitFlag, "message", reSplitFlagResult));
|
||||
|
||||
logger.info("debugOrder结束, resultMap:{}", JSONObject.toJSONString(resultMap));
|
||||
return resultMap;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user