修改认证清单转办时 接口人和责任人的项目权限
This commit is contained in:
+14
@@ -2204,6 +2204,20 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.updateBatchById(projectCertificationInventoryEOList);
|
this.updateBatchById(projectCertificationInventoryEOList);
|
||||||
|
//设置权限 先删后加
|
||||||
|
Date now = new Date();
|
||||||
|
List<ProjectUserPermission> adds = new ArrayList<>();
|
||||||
|
for (ProjectCertificationInventoryEO pci:projectCertificationInventoryEOList) {
|
||||||
|
if (ObjectUtils.isNotEmpty(pci.getSdt())) {
|
||||||
|
setProjectCertificationInventoryPermission(pci.getSdt(), pci.getProjectLibraryId(), pci.getId(), now, adds, ProjectUserLocationEnum.PROJECT_CERTIFICATION_INVENTORY_SDT.getValue());
|
||||||
|
}
|
||||||
|
if (ObjectUtils.isNotEmpty(pci.getDutyPerson())) {
|
||||||
|
setProjectCertificationInventoryPermission(pci.getDutyPerson(), pci.getProjectLibraryId(), pci.getId(), now, adds, ProjectUserLocationEnum.PROJECT_CERTIFICATION_INVENTORY_DP.getValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (ObjectUtils.isNotEmpty(adds)) {
|
||||||
|
projectUserPermissionService.saveBatch(adds);
|
||||||
|
}
|
||||||
|
|
||||||
Collections.sort(projectCertificationInventoryEOList, new Comparator<ProjectCertificationInventoryEO>() {
|
Collections.sort(projectCertificationInventoryEOList, new Comparator<ProjectCertificationInventoryEO>() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user