修改VDR问题
This commit is contained in:
+12
-7
@@ -1506,16 +1506,21 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
List<OtaManagePermission> ompAllList = otaManagePermissionService.list();
|
||||||
List<OtaManagePermission> ompList = new ArrayList<>();
|
List<OtaManagePermission> ompList = new ArrayList<>();
|
||||||
for (String studioId : matchStudioMap.keySet()) {
|
for (String studioId : matchStudioMap.keySet()) {
|
||||||
OtaManagePermission omp = new OtaManagePermission();
|
List<OtaManagePermission> filterList = ompAllList.stream().filter(o->o.getApplyId().equals(id)&&o.getUserId().equals(studioId)).collect(Collectors.toList());
|
||||||
omp.setApplyId(id);
|
if(CollectionUtils.isEmpty(filterList)){
|
||||||
omp.setUserId(studioId);
|
OtaManagePermission omp = new OtaManagePermission();
|
||||||
omp.setVehicle(matchStudioMap.get(studioId).stream().collect(Collectors.joining(",")));
|
omp.setApplyId(id);
|
||||||
ompList.add(omp);
|
omp.setUserId(studioId);
|
||||||
|
omp.setVehicle(matchStudioMap.get(studioId).stream().collect(Collectors.joining(",")));
|
||||||
|
ompList.add(omp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(CollectionUtils.isNotEmpty(ompList)){
|
||||||
|
otaManagePermissionService.saveBatch(ompList);
|
||||||
}
|
}
|
||||||
otaManagePermissionService.saveBatch(ompList);
|
|
||||||
//给studio发消息
|
//给studio发消息
|
||||||
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
Map<String, Object> params = new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user