bugfix 查询分账列表如果没订单会报错

This commit is contained in:
Lemon
2025-04-14 14:01:59 +08:00
parent bc7fa82f71
commit cba009bcf2

View File

@@ -280,6 +280,9 @@ public class OrderSplitRecordServiceImpl implements OrderSplitRecordService {
// 分页(注意:这里要先单独查询订单编号进行分页,因为对分账信息分页,当前页不一定能完全展示完毕同一订单号的分账信息)
PageHelper.startPage(pageNo, pageSize);
List<String> orderCodes = orderSplitRecordMapper.queryOrderCodesByParams(dto);
if (CollectionUtils.isEmpty(orderCodes)) {
return new PageResponse();
}
PageInfo<String> pageInfo = new PageInfo<>(orderCodes);
// 查询符合条件的分账记录