Merge remote-tracking branch 'origin/dev_20230912_Platform' into dev_20230912_Platform
This commit is contained in:
+18
-18
@@ -399,8 +399,8 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
|||||||
projectLawsInventoryEOTemp.setTaskAffirmStatus(TaskAffirmStatusEnum.NOT_STARTED.getValue());
|
projectLawsInventoryEOTemp.setTaskAffirmStatus(TaskAffirmStatusEnum.NOT_STARTED.getValue());
|
||||||
projectLawsInventoryEOTemp.setInventoryAffirmStatus(InventoryAffirmStatusEnum.NOT_STARTED.getValue());
|
projectLawsInventoryEOTemp.setInventoryAffirmStatus(InventoryAffirmStatusEnum.NOT_STARTED.getValue());
|
||||||
projectLawsInventoryEOTemp.setStandId(dummyInventoryInfoEO.getBussDocumentLibraryId());
|
projectLawsInventoryEOTemp.setStandId(dummyInventoryInfoEO.getBussDocumentLibraryId());
|
||||||
projectLawsInventoryEOTemp.setDesignFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
projectLawsInventoryEOTemp.setDesignFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||||
projectLawsInventoryEOTemp.setVerifyFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
projectLawsInventoryEOTemp.setVerifyFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||||
projectLawsInventoryEOTemp.setCreateTime(new Date());
|
projectLawsInventoryEOTemp.setCreateTime(new Date());
|
||||||
projectLawsInventoryEOTemp.setUpdateTime(new Date());
|
projectLawsInventoryEOTemp.setUpdateTime(new Date());
|
||||||
projectLawsInventoryEOS.add(projectLawsInventoryEOTemp);
|
projectLawsInventoryEOS.add(projectLawsInventoryEOTemp);
|
||||||
@@ -425,8 +425,8 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
|||||||
projectLawsInventoryEOTemp.setTaskAffirmStatus(TaskAffirmStatusEnum.NOT_STARTED.getValue());
|
projectLawsInventoryEOTemp.setTaskAffirmStatus(TaskAffirmStatusEnum.NOT_STARTED.getValue());
|
||||||
projectLawsInventoryEOTemp.setInventoryAffirmStatus(InventoryAffirmStatusEnum.NOT_STARTED.getValue());
|
projectLawsInventoryEOTemp.setInventoryAffirmStatus(InventoryAffirmStatusEnum.NOT_STARTED.getValue());
|
||||||
projectLawsInventoryEOTemp.setStandId(dummyInventoryInfoEO.getBussDocumentLibraryId());
|
projectLawsInventoryEOTemp.setStandId(dummyInventoryInfoEO.getBussDocumentLibraryId());
|
||||||
projectLawsInventoryEOTemp.setDesignFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
projectLawsInventoryEOTemp.setDesignFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||||
projectLawsInventoryEOTemp.setVerifyFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue());
|
projectLawsInventoryEOTemp.setVerifyFlowStatus(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue());
|
||||||
projectLawsInventoryEOTemp.setCreateTime(new Date());
|
projectLawsInventoryEOTemp.setCreateTime(new Date());
|
||||||
projectLawsInventoryEOTemp.setUpdateTime(new Date());
|
projectLawsInventoryEOTemp.setUpdateTime(new Date());
|
||||||
projectLawsInventoryEOS.add(projectLawsInventoryEOTemp);
|
projectLawsInventoryEOS.add(projectLawsInventoryEOTemp);
|
||||||
@@ -682,13 +682,13 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
|||||||
public void deleteById(String id, String projectLibraryId, String cut) {
|
public void deleteById(String id, String projectLibraryId, String cut) {
|
||||||
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
int isProjectRole = this.checkUserRole(projectLibraryId, currentUser.getId(), "");
|
int isProjectRole = this.checkUserRole(projectLibraryId, currentUser.getId(), "");
|
||||||
if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
|
// if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
// if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
throw new JeroBootException("该用户没有删除权限");
|
// throw new JeroBootException("该用户没有删除权限");
|
||||||
} else {
|
// } else {
|
||||||
throw new JeroBootException("The user has no deletion permission");
|
// throw new JeroBootException("The user has no deletion permission");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
//更新log
|
//更新log
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
@@ -734,13 +734,13 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl<Platf
|
|||||||
}
|
}
|
||||||
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
int isProjectRole = this.checkUserRole(projectLibraryId, currentUser.getId(), "");
|
int isProjectRole = this.checkUserRole(projectLibraryId, currentUser.getId(), "");
|
||||||
if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
|
// if (!ProjectRoleEnum.STUDIO_ENGINEER.getValue().equals(String.valueOf(isProjectRole))) {
|
||||||
if (CutEnum.CN.getValue().equals(cut)) {
|
// if (CutEnum.CN.getValue().equals(cut)) {
|
||||||
throw new JeroBootException("该用户没有删除权限");
|
// throw new JeroBootException("该用户没有删除权限");
|
||||||
} else {
|
// } else {
|
||||||
throw new JeroBootException("The user has no deletion permission");
|
// throw new JeroBootException("The user has no deletion permission");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
//更新log
|
//更新log
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
|||||||
Reference in New Issue
Block a user