修改OTA待办中心
This commit is contained in:
+9
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user