余额支付订单分账工具

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;
}
}

View File

@@ -46,7 +46,6 @@ import com.jsowell.pile.domain.ykcCommond.ProofreadTimeCommand;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.dto.amap.GetStationInfoDTO;
import com.jsowell.pile.dto.lutongyunting.BindCouponDTO;
import com.jsowell.pile.dto.lutongyunting.GetTokenDTO;
import com.jsowell.pile.mapper.MemberBasicInfoMapper;
import com.jsowell.pile.mapper.PileBillingTemplateMapper;
import com.jsowell.pile.service.*;
@@ -244,7 +243,7 @@ public class SpringBootTestController {
public void queryPaymentConfirmListTest() {
QueryPaymentConfirmDTO dto = new QueryPaymentConfirmDTO();
dto.setWechatAppId("wxbb3e0d474569481d");
dto.setPaymentId("002212023080223561910532842298673803264");
dto.setPaymentId("002212023081712452810538109291674042368");
QueryPaymentConfirmDetailResponse queryPaymentConfirmDetailResponse = adapayService.queryPaymentConfirmList(dto);
System.out.println(queryPaymentConfirmDetailResponse);
}