Sfoglia il codice sorgente

单位要判断

tags/24080901
PoffyZhang 1 anno fa
parent
commit
138bc8fdcc
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java Vedi File

@@ -99,6 +99,8 @@ public class PrequalificationDeclaredProjectManage {
VUtils.isTrue(Objects.isNull(projectInfo)).throwMessage("提交失败 此项目不存在!");

//要判断 当前操作人 是不是项目主管单位的人
VUtils.isTrue(Objects.isNull(user.getOrganizationCode()))
.throwMessage(String.format("当前登录人没有单位 【%s】",user.getRealName()));
VUtils.isTrue(!user.getOrganizationCode().equals(projectInfo.getSuperOrgCode()))
.throwMessage(String.format("只有主管单位 【%s】的人 才能够提交",projectInfo.getSuperOrg()));



Loading…
Annulla
Salva