修改OTA待办中心

This commit is contained in:
高嵩
2023-09-18 15:47:27 +08:00
parent ddfff05de2
commit 04c0271d6b
@@ -2306,15 +2306,24 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
List<OtaManageApplyEO> omaList = this.getListByVdrList(vdrList); List<OtaManageApplyEO> omaList = this.getListByVdrList(vdrList);
for (OtaManagePermission omp : ompList) { for (OtaManagePermission omp : ompList) {
if (StringUtils.isNotEmpty(otaManageReceiveNsdp.getReleaseName()) && !omp.getApplyId().contains(otaManageReceiveNsdp.getReleaseName())) {
continue;
}
String vehicleStr = omp.getVehicle(); String vehicleStr = omp.getVehicle();
String[] vehicleList = vehicleStr.split(","); String[] vehicleList = vehicleStr.split(",");
for (String vehicle : vehicleList) { for (String vehicle : vehicleList) {
if (StringUtils.isNotEmpty(otaManageReceiveNsdp.getVehicle()) && !vehicle.contains(otaManageReceiveNsdp.getVehicle())) {
continue;
}
List<OtaManageReceive> omrVehicleList = omrList.stream() List<OtaManageReceive> omrVehicleList = omrList.stream()
.filter(obj -> StringUtils.isNotEmpty(obj.getPlannedBpLaunchBatch()) && obj.getPlannedBpLaunchBatch().equals(omp.getApplyId()) .filter(obj -> StringUtils.isNotEmpty(obj.getPlannedBpLaunchBatch()) && obj.getPlannedBpLaunchBatch().equals(omp.getApplyId())
&& StringUtils.isNotEmpty(obj.getVehicleMatch()) && obj.getVehicleMatch().contains(vehicle)) && StringUtils.isNotEmpty(obj.getVehicleMatch()) && obj.getVehicleMatch().contains(vehicle))
.collect(Collectors.toList()); .collect(Collectors.toList());
for (OtaManageReceive mrVehicle : omrVehicleList) { for (OtaManageReceive mrVehicle : omrVehicleList) {
if (StringUtils.isNotEmpty(otaManageReceiveNsdp.getReleaseType()) && !otaManageReceiveNsdp.getReleaseType().equals(mrVehicle.getReleaseType())) {
continue;
}
if (!OtaHomoImpactEnum.YES.getValue().equals(mrVehicle.getHomologationImpact()) if (!OtaHomoImpactEnum.YES.getValue().equals(mrVehicle.getHomologationImpact())
&& !OtaHomoImpactEnum.INTER_VALID.getValue().equals(mrVehicle.getHomologationImpact())) { && !OtaHomoImpactEnum.INTER_VALID.getValue().equals(mrVehicle.getHomologationImpact())) {
List<OtaManageApplyEO> applyList = omaList.stream() List<OtaManageApplyEO> applyList = omaList.stream()