5-22 - fix
parent
ffc0350a10
commit
a375b1e58d
|
|
@ -51,15 +51,15 @@ public class SafetyEnvironmentalInspectionRemoveExe {
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean execute(Long id) {
|
public boolean execute(Long id) {
|
||||||
|
|
||||||
//只有主账号才有删除权限
|
// //只有主账号才有删除权限
|
||||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
// SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||||
ZcloudUserCo zcloudUserCo = systemUserUtils.getZcloudUserInfoById(ssoUser.getUserId());
|
// ZcloudUserCo zcloudUserCo = systemUserUtils.getZcloudUserInfoById(ssoUser.getUserId());
|
||||||
if (zcloudUserCo == null) {
|
// if (zcloudUserCo == null) {
|
||||||
throw new BizException("删除权限校验失败");
|
// throw new BizException("删除权限校验失败");
|
||||||
}
|
// }
|
||||||
if (zcloudUserCo.getMainCorpFlag() != 1) {
|
// if (zcloudUserCo.getMainCorpFlag() != 1) {
|
||||||
throw new BizException("您没有删除权限");
|
// throw new BizException("您没有删除权限");
|
||||||
}
|
// }
|
||||||
|
|
||||||
SafetyEnvironmentalInspectionDO inspectionDO = safetyEnvironmentalInspectionRepository.getById(id);
|
SafetyEnvironmentalInspectionDO inspectionDO = safetyEnvironmentalInspectionRepository.getById(id);
|
||||||
boolean res = safetyEnvironmentalInspectionGateway.deletedSafetyEnvironmentalInspectionById(id);
|
boolean res = safetyEnvironmentalInspectionGateway.deletedSafetyEnvironmentalInspectionById(id);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue