全部车型(权限)

This commit is contained in:
zhn
2023-08-25 16:51:50 +08:00
parent 60981e8636
commit fb6655c1de
@@ -313,7 +313,7 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
}
private List<OtaManageApplyEO> getStudioData(OtaManageApplyEO otaManageApplyEO, List<OtaManageApplyEO> otaManageApplyEOList) {
List<OtaManageApplyEO> list = new ArrayList<>();
Set<OtaManageApplyEO> set = new HashSet<>();
List<String> studioCarList = getStudioCarList(otaManageApplyEO.getPlannedBpLaunchBatch());
for (String carMarket : studioCarList) {
String[] conditionSplit = carMarket.split(" ");
@@ -325,18 +325,18 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
for (String appliedVehicleProjectTemp : appliedVehicleProjectArr) {
String[] split = appliedVehicleProjectTemp.split(" ");
if (split.length == 1) {
list.add(manageApplyEO);
set.add(manageApplyEO);
break;
} else if (split.length == 2) {
if (Arrays.equals(conditionSplit, split)) {
list.add(manageApplyEO);
set.add(manageApplyEO);
break;
}
} else if (split.length == 3) {
List<String> listTemp = Arrays.asList(split);
List<String> conditionList = Arrays.asList(conditionSplit);
if (listTemp.containsAll(conditionList)) {
list.add(manageApplyEO);
set.add(manageApplyEO);
break;
}
}
@@ -344,7 +344,7 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
}
}
}
otaManageApplyEOList= list;
otaManageApplyEOList= new ArrayList<>(set);
return otaManageApplyEOList;
}