mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
优化结算订单逻辑
This commit is contained in:
@@ -748,22 +748,14 @@ public class TempController extends BaseController {
|
||||
|
||||
/**
|
||||
* 调试结算订单逻辑
|
||||
* http://localhost:8080/temp/testSettleOrderLogic
|
||||
*/
|
||||
@PostMapping("/testSettleOrderLogic")
|
||||
public RestApiResponse<?> testSettleOrderLogic(@RequestBody ApplyRefundDTO dto) {
|
||||
public RestApiResponse<?> testSettleOrderLogic(@RequestBody TransactionRecordsData data) {
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
TransactionRecordsData data = TransactionRecordsData.builder()
|
||||
.transactionCode(dto.getTransactionCode())
|
||||
.pileSn(dto.getPileSn())
|
||||
.connectorCode(dto.getConnectorCode())
|
||||
.startTime(dto.getStartTime())
|
||||
.endTime(dto.getEndTime())
|
||||
.sharpPrice(dto.getSharpPrice())
|
||||
.sharpUsedElectricity(dto.getSharpUsedElectricity())
|
||||
.sharpPlanLossElectricity()
|
||||
.build();
|
||||
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByOrderCode(dto.getOrderCode());
|
||||
String transactionCode = data.getTransactionCode();
|
||||
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||
// 调试结算订单逻辑
|
||||
tempService.testSettleOrderLogic(data, orderBasicInfo);
|
||||
response = new RestApiResponse<>();
|
||||
|
||||
Reference in New Issue
Block a user