update 添加集团名称字段

This commit is contained in:
2024-03-11 11:08:48 +08:00
parent 3983438371
commit 9e8a14d2dd
6 changed files with 37 additions and 69 deletions

View File

@@ -315,13 +315,13 @@ public class MemberGroupServiceImpl implements MemberGroupService {
Map<String, List<OrderBasicInfo>> listMap = orderList.stream().collect(Collectors.groupingBy(OrderBasicInfo::getMemberId));
MemberGroupConsumptionVO vo = null;
for (Map.Entry<String, List<OrderBasicInfo>> entry : listMap.entrySet()) {
if (CollectionUtils.isEmpty(entry.getValue())) {
continue;
}
// 订单根据结算时间倒序结算时间为null的排在最后(null在前结算日期正序之后整个list反转)
List<OrderBasicInfo> orderBasicInfoList = entry.getValue().stream()
.sorted(Comparator.comparing(OrderBasicInfo::getSettlementTime, Comparator.nullsLast(Comparator.reverseOrder())))
.collect(Collectors.toList());
if (CollectionUtils.isEmpty(orderBasicInfoList)) {
continue;
}
vo = new MemberGroupConsumptionVO();
String vinCode = null;
@@ -359,7 +359,7 @@ public class MemberGroupServiceImpl implements MemberGroupService {
dto.setGroupCode(groupCode);
dto.setVinCode(vinCode);
List<OrderListVO> orderListVOS = orderBasicInfoService.selectOrderBasicInfoList(dto);
return null;
return orderListVOS;
}
/**