新增order_no字段

This commit is contained in:
2023-08-21 11:25:01 +08:00
parent 98fa43182d
commit 85e6ebfb95
3 changed files with 54 additions and 22 deletions

View File

@@ -615,12 +615,12 @@ public class AdapayService {
// 发送提现申请
Map<String, Object> settleCountParams = Maps.newHashMap();
settleCountParams.put("order_no", "drawcash_" + System.currentTimeMillis());
String orderNo = "drawcash_" + dto.getMerchantId() + "_" +System.currentTimeMillis();
settleCountParams.put("order_no", orderNo);
settleCountParams.put("cash_amt", AdapayUtil.formatAmount(cashAmt));
settleCountParams.put("member_id", adapayAccountBalanceVO.getAdapayMemberId());
settleCountParams.put("app_id", config.getAdapayAppId());
settleCountParams.put("settle_account_id", adapayAccountBalanceVO.getSettleAccountId());
settleCountParams.put("cash_type", "T1");
settleCountParams.put("notify_url", ADAPAY_CALLBACK_URL);
Map<String, Object> settleCount = Drawcash.create(settleCountParams, config.getWechatAppId());
log.info("申请取现接口,请求参数:{}, 返回参数:{}", JSON.toJSONString(settleCountParams), JSON.toJSONString(settleCount));
@@ -638,6 +638,7 @@ public class AdapayService {
ClearingWithdrawInfo record = new ClearingWithdrawInfo();
record.setMerchantId(dto.getMerchantId());
record.setWithdrawCode(id);
record.setOrderNo(orderNo);
record.setWithdrawStatus(Constants.ZERO);
Date now = new Date();
record.setApplicationTime(now);