修改OTAbug
This commit is contained in:
+20
-4
@@ -1410,12 +1410,28 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
|
|||||||
receiveList = receiveList.stream()
|
receiveList = receiveList.stream()
|
||||||
.collect(Collectors.collectingAndThen(Collectors
|
.collect(Collectors.collectingAndThen(Collectors
|
||||||
.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getPlannedBpLaunchBatch()))), ArrayList::new));
|
.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getPlannedBpLaunchBatch()))), ArrayList::new));
|
||||||
for (OtaManageApplyEO rec : receiveList) {
|
String name = "";
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
String market = "";
|
||||||
rec.setAppliedVehicleProject("全部");
|
ProjectLibraryBase plb = projectLibraryBaseService.selectById(projectId);
|
||||||
|
if (ObjectUtils.isNotEmpty(plb)) {
|
||||||
|
if (StringUtils.isNotEmpty(plb.getProjectName()) && plb.getProjectName().equals("FORCE")) {
|
||||||
|
name = "Force";
|
||||||
} else {
|
} else {
|
||||||
rec.setAppliedVehicleProject("All");
|
name = plb.getProjectName();
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isNotEmpty(plb.getTargetMarket())) {
|
||||||
|
String[] marketStrs = plb.getTargetMarket().split(",");
|
||||||
|
if (marketStrs[0].equals("china")) {
|
||||||
|
market = "CN";
|
||||||
|
} else if (marketStrs[0].equals("UK")) {
|
||||||
|
market = "RHD";
|
||||||
|
} else {
|
||||||
|
market = marketStrs[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (OtaManageApplyEO rec : receiveList) {
|
||||||
|
rec.setAppliedVehicleProject(name + " " + market);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return receiveList;
|
return receiveList;
|
||||||
|
|||||||
Reference in New Issue
Block a user