|
@@ -337,7 +337,7 @@ public class LuckPrizeServiceImpl implements LuckPrizeService {
|
|
|
map.putAll(list.stream()
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend() != null)
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend().getProvinceName() != null)
|
|
|
- .collect(Collectors.groupingBy(k -> k.getExtend().getProvinceName())));
|
|
|
+ .collect(Collectors.groupingBy(k -> k.getExtend().getProvinceId() + "," + k.getExtend().getProvinceName())));
|
|
|
}
|
|
|
|
|
|
if ("city".equals(type)) {
|
|
@@ -345,13 +345,13 @@ public class LuckPrizeServiceImpl implements LuckPrizeService {
|
|
|
map.putAll(list.stream()
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend() != null)
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend().getCityName() != null)
|
|
|
- .collect(Collectors.groupingBy(k -> k.getExtend().getCityName())));
|
|
|
+ .collect(Collectors.groupingBy(k -> k.getExtend().getCityId() + "," + k.getExtend().getCityName())));
|
|
|
} else {
|
|
|
map.putAll(list.stream()
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend() != null)
|
|
|
.filter(luckPrizeDetailRespVO -> parentAreaId.equals(luckPrizeDetailRespVO.getExtend().getProvinceId()))
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend().getCityName() != null)
|
|
|
- .collect(Collectors.groupingBy(k -> k.getExtend().getCityName())));
|
|
|
+ .collect(Collectors.groupingBy(k -> k.getExtend().getCityId() + "," + k.getExtend().getCityName())));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -360,13 +360,13 @@ public class LuckPrizeServiceImpl implements LuckPrizeService {
|
|
|
map.putAll(list.stream()
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend() != null)
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend().getDistrictName() != null)
|
|
|
- .collect(Collectors.groupingBy(k -> k.getExtend().getDistrictName())));
|
|
|
+ .collect(Collectors.groupingBy(k -> k.getExtend().getDistrictId() + "," + k.getExtend().getDistrictName())));
|
|
|
} else {
|
|
|
map.putAll(list.stream()
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend() != null)
|
|
|
.filter(luckPrizeDetailRespVO -> parentAreaId.equals(luckPrizeDetailRespVO.getExtend().getCityId()))
|
|
|
.filter(luckPrizeDetailRespVO -> luckPrizeDetailRespVO.getExtend().getDistrictName() != null)
|
|
|
- .collect(Collectors.groupingBy(k -> k.getExtend().getDistrictName())));
|
|
|
+ .collect(Collectors.groupingBy(k -> k.getExtend().getDistrictId() + "," + k.getExtend().getDistrictName())));
|
|
|
}
|
|
|
}
|
|
|
|