Commit fe0e686f by 程裕兵

feat:left refund amount

parent 658ab98d
......@@ -120,7 +120,13 @@ public class StudioCashierServiceImpl implements StudioCashierService {
@Override
public List<StudioCashierRecordVO> listByOrderNos(Set<String> orderNos) {
List<StudioCashierRecord> list = studioCashierRecordRpService.listByOrderNos(orderNos);
return CashierConvert.convertList(list, new HashMap<>(1));
List<String> payNos = list.stream()
.filter(e -> BrandCashierTransTypeEnum.PAY.getCode().equals(e.getTransType()))
.map(StudioCashierRecord::getTransNo)
.collect(Collectors.toList());
Map<String, List<StudioCashierRecord>> payNoRefundMap = studioCashierRecordRpService.mapByRelatedTransNos(
payNos);
return CashierConvert.convertList(list, payNoRefundMap);
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment