|
@@ -956,7 +956,7 @@ public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, Order> implem
|
|
|
List<SubsidyCustomerJsonFace> jsonFaceList = Lists.newArrayList();
|
|
List<SubsidyCustomerJsonFace> jsonFaceList = Lists.newArrayList();
|
|
|
if(source.equals(1)){
|
|
if(source.equals(1)){
|
|
|
//按区域分组
|
|
//按区域分组
|
|
|
- Map<Integer,List<CustomerSubsidyDTO>> countryMaps = csList.stream().collect(Collectors.groupingBy(CustomerSubsidyDTO::getNowCountryId));
|
|
|
|
|
|
|
+ Map<Integer,List<CustomerSubsidyDTO>> countryMaps = csList.stream().filter(c->c.getNowCountryId() != null).collect(Collectors.groupingBy(CustomerSubsidyDTO::getNowCountryId));
|
|
|
for (Integer key : countryMaps.keySet()) {
|
|
for (Integer key : countryMaps.keySet()) {
|
|
|
List<CustomerSubsidyDTO> keyList = countryMaps.get(key);
|
|
List<CustomerSubsidyDTO> keyList = countryMaps.get(key);
|
|
|
SubsidyCustomerJsonFace jsonFace = new SubsidyCustomerJsonFace();
|
|
SubsidyCustomerJsonFace jsonFace = new SubsidyCustomerJsonFace();
|
|
@@ -968,7 +968,7 @@ public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, Order> implem
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
//按老人类型分组
|
|
//按老人类型分组
|
|
|
- Map<String,List<CustomerSubsidyDTO>> typeMaps = csList.stream().collect(Collectors.groupingBy(CustomerSubsidyDTO::getCustomerTypeId));
|
|
|
|
|
|
|
+ Map<String,List<CustomerSubsidyDTO>> typeMaps = csList.stream().filter(c->StringUtils.isNotEmpty(c.getCustomerTypeId())).collect(Collectors.groupingBy(CustomerSubsidyDTO::getCustomerTypeId));
|
|
|
Map<String,SubsidyCustomerJsonFace> faceMap = new HashMap<>();
|
|
Map<String,SubsidyCustomerJsonFace> faceMap = new HashMap<>();
|
|
|
for (String key : typeMaps.keySet()) {
|
|
for (String key : typeMaps.keySet()) {
|
|
|
List<CustomerSubsidyDTO> keyList = typeMaps.get(key);
|
|
List<CustomerSubsidyDTO> keyList = typeMaps.get(key);
|