|
|
|
@ -171,6 +171,13 @@ public class LabServiceImpl extends ServiceImpl<LabMapper, LabEntity> implements |
|
|
|
if (StringUtils.isBlank(userName)) { |
|
|
|
throw new RuntimeException("下达人不能为空"); |
|
|
|
} |
|
|
|
String creator = StringUtils.trimToEmpty(lab.getCreateBy()); |
|
|
|
if (StringUtils.isBlank(creator)) { |
|
|
|
creator = StringUtils.trimToEmpty(lab.getApplicant()); |
|
|
|
} |
|
|
|
if (!StringUtils.equals(StringUtils.trimToEmpty(userName), creator)) { |
|
|
|
throw new RuntimeException("只能下达自己发起的申请!"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(menuId)) { |
|
|
|
throw new RuntimeException("菜单ID不能为空"); |
|
|
|
} |
|
|
|
|