处理OrderSplitRecord中值为0的数据

This commit is contained in:
Guoqs
2025-10-10 16:26:01 +08:00
parent 2a3afa3e10
commit 5b800cbc01
3 changed files with 6 additions and 3 deletions

View File

@@ -987,7 +987,10 @@ public class TempController extends BaseController {
public RestApiResponse<?> handleOrderSplitRecord(@RequestBody QueryOrderDTO dto) {
RestApiResponse<?> response;
try {
tempService.handleOrderSplitRecord(dto.getOrderCode());
List<String> orderCodeList = dto.getOrderCodeList();
for (String orderCode : orderCodeList) {
tempService.handleOrderSplitRecord(orderCode);
}
response = new RestApiResponse<>();
} catch (Exception e) {
logger.error("处理OrderSplitRecord中值为0的数据 error,", e);

View File

@@ -2282,7 +2282,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
PaymentConfirmInfo paymentConfirmInfo = adapayService.queryPaymentConfirmDetail(dto);
// 如果之前存在订单分账记录, 则删除
// orderSplitRecordService.deleteOrderSplitRecord(orderCode);
orderSplitRecordService.deleteOrderSplitRecord(orderCode);
// 保存订单分账记录
OrderInfoDetailVO orderInfoDetailVO = getOrderInfoDetailVO(orderCode);
orderSplitRecordService.saveOrderSplitRecordTemp(param, paymentConfirmInfo, splitDataList, orderInfoDetailVO);

View File

@@ -166,7 +166,7 @@ public class OrderSplitRecordServiceImpl implements OrderSplitRecordService {
list.add(orderSplitRecord);
}
log.info("保存:{}", JSON.toJSONString(list));
// this.batchInsert(list);
this.batchInsert(list);
}
@Override