mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 10:49:52 +08:00
优化结算订单逻辑
This commit is contained in:
@@ -748,22 +748,14 @@ public class TempController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 调试结算订单逻辑
|
* 调试结算订单逻辑
|
||||||
|
* http://localhost:8080/temp/testSettleOrderLogic
|
||||||
*/
|
*/
|
||||||
@PostMapping("/testSettleOrderLogic")
|
@PostMapping("/testSettleOrderLogic")
|
||||||
public RestApiResponse<?> testSettleOrderLogic(@RequestBody ApplyRefundDTO dto) {
|
public RestApiResponse<?> testSettleOrderLogic(@RequestBody TransactionRecordsData data) {
|
||||||
RestApiResponse<?> response;
|
RestApiResponse<?> response;
|
||||||
try {
|
try {
|
||||||
TransactionRecordsData data = TransactionRecordsData.builder()
|
String transactionCode = data.getTransactionCode();
|
||||||
.transactionCode(dto.getTransactionCode())
|
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||||
.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());
|
|
||||||
// 调试结算订单逻辑
|
// 调试结算订单逻辑
|
||||||
tempService.testSettleOrderLogic(data, orderBasicInfo);
|
tempService.testSettleOrderLogic(data, orderBasicInfo);
|
||||||
response = new RestApiResponse<>();
|
response = new RestApiResponse<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user