Merge remote-tracking branch 'origin/dev_20230808_OTA'

This commit is contained in:
高嵩
2023-08-28 10:20:47 +08:00
2 changed files with 18 additions and 14 deletions
@@ -7,7 +7,7 @@ public enum OtaCarEnum {
ALL("All", "All"), ALL("All", "All"),
CN_ALL("CN All", "EU All"), CN_ALL("CN All", "CN All"),
EU_ALL("EU All", "EU All"); EU_ALL("EU All", "EU All");
String name; String name;
@@ -245,8 +245,11 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
carList = carList.stream().distinct().collect(Collectors.toList()); carList = carList.stream().distinct().collect(Collectors.toList());
manageApplyEO.setAppliedVehicleProject(StringUtils.join(carList, ",")); manageApplyEO.setAppliedVehicleProject(StringUtils.join(carList, ","));
//市场 //市场
for (String appliedVehicleProject : carList) {
Set<String> marketSet = new HashSet<>(); Set<String> marketSet = new HashSet<>();
for (String appliedVehicleProject : carList) {
if(otaNameList.contains(appliedVehicleProject)){
marketSet.add(appliedVehicleProject);
}else{
for (String s : appliedVehicleProject.split(",")) { for (String s : appliedVehicleProject.split(",")) {
String[] split = s.split(" "); String[] split = s.split(" ");
if (split.length == 2) { if (split.length == 2) {
@@ -259,12 +262,13 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
} }
} }
} }
}
}
if (!marketSet.isEmpty()) { if (!marketSet.isEmpty()) {
manageApplyEO.setMarket(StringUtils.join(marketSet, ",")); manageApplyEO.setMarket(StringUtils.join(marketSet, ","));
} }
} }
} }
}
result.add(manageApplyEO); result.add(manageApplyEO);
} }
} }