余额支付订单分账工具

This commit is contained in:
2023-08-24 17:23:33 +08:00
parent 4929b5a4a0
commit 867c8240c5
6 changed files with 133 additions and 88 deletions

View File

@@ -367,4 +367,25 @@ public class TempController extends BaseController {
logger.info("查询未分账订单result:{}", JSON.toJSONString(response));
return response;
}
/**
* 余额支付订单分账工具
* 8月17号之后使用汇付余额支付的订单
* 需要重新走一遍分账
*/
@PostMapping("/splitTheBillForOrderTemp")
public RestApiResponse<?> splitTheBillForOrderTemp(QueryOrderDTO dto) {
RestApiResponse<?> response;
try {
orderBasicInfoService.splitTheBillForOrderTemp(dto.getMerchantId(), dto.getOrderCodeList());
response = new RestApiResponse<>();
} catch (BusinessException e) {
logger.error("余额支付订单分账工具 error,", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("余额支付订单分账工具 error,", e);
response = new RestApiResponse<>("00300003", "余额支付订单分账工具异常");
}
return response;
}
}