update 更新adapayUnsplitRecord数据

This commit is contained in:
Guoqs
2025-11-14 15:44:24 +08:00
parent c3db9b9201
commit 333521bbcb
2 changed files with 4 additions and 1 deletions

View File

@@ -3497,7 +3497,7 @@
<select id="selectOrderTemp" resultMap="BaseResultMap">
select
order_code, refund_amount, settle_amount
order_code, refund_amount, settle_amount, pile_sn
from order_basic_info
where order_code in
<foreach item="item" collection="orderCodes" separator="," open="(" close=")">

View File

@@ -3,6 +3,7 @@ package com.jsowell.quartz.task;
import com.google.common.collect.Lists;
import com.jsowell.adapay.dto.WithdrawDTO;
import com.jsowell.adapay.service.AdapayService;
import com.jsowell.common.YouDianUtils;
import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.redis.RedisCache;
@@ -439,6 +440,8 @@ public class JsowellTask {
AdapayUnsplitRecord adapayUnsplitRecord = map.get(orderCode);
adapayUnsplitRecord.setDueRefundAmount(orderBasicInfo.getRefundAmount());
adapayUnsplitRecord.setSettleAmount(orderBasicInfo.getSettleAmount());
String pileSn = orderBasicInfo.getPileSn();
adapayUnsplitRecord.setPileType(YouDianUtils.isEBikePileSn(pileSn) ? "eBike" : "EV");
updateList.add(adapayUnsplitRecord);
}
adapayUnsplitRecordService.updateBatchSelective(updateList);