Browse Source

申报项目 是否是上级主管

master
PoffyZhang 1 year ago
parent
commit
99c973e8ce
2 changed files with 14 additions and 1 deletions
  1. +3
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java
  2. +11
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java

+ 3
- 1
pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java View File

@@ -74,7 +74,9 @@ public class ProjectIrsManage {
}

String url = coreBizUrl + "?" +
"dingCode=" + orgCode + "&matterName=" + (StringUtils.isNotBlank(businessName)?businessName:StringUtils.EMPTY) + "&oid=&useState=1&" +
"dingCode=" + (StringUtils.isNotBlank(orgCode)?orgCode:StringUtils.EMPTY) +
"&matterName=" + (StringUtils.isNotBlank(businessName)?businessName:StringUtils.EMPTY) +
"&oid=&useState=1&" +
"limit=" + (Objects.isNull(limit) ? "10" : limit) + "&page=" + (Objects.isNull(page) ? "1" : page) +
"&appKey=" + appKey + "&sign=" + sign + "&requestTime=" + timestamp;



+ 11
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java View File

@@ -130,6 +130,10 @@ public class DeclaredProjectManage {
//判断申报金额 是否等于总的 判断年度支付金额 是否等于总金额
defaultDeclaredProjectManage.checkAmount(projectInfo);

//写死 是否有主管单位
projectInfo.setIsHigherSuperOrg(CommonEnum.YES.getCode());
projectInfo.setIsSuperOrg(CommonEnum.YES.getCode());

//如果主管单位没有 那么主管单位就是自己
if(CommonEnum.NO.getCode().equals(projectInfo.getIsSuperOrg())){
projectInfo.setSuperOrgCode(user.getEmpPosUnitCode());
@@ -218,6 +222,10 @@ public class DeclaredProjectManage {
defaultDeclaredProjectManage.checkDuplication(projectDto);
}

//写死 是否有主管单位
projectInfo.setIsHigherSuperOrg(CommonEnum.YES.getCode());
projectInfo.setIsSuperOrg(CommonEnum.YES.getCode());

//如果主管单位没有 那么主管单位就是自己
if(CommonEnum.NO.getCode().equals(projectDto.getIsSuperOrg())){
projectInfo.setSuperOrgCode(user.getEmpPosUnitCode());
@@ -322,6 +330,9 @@ public class DeclaredProjectManage {
ProjectDTO projectInfo = dto.getProjectInfo();
ProjectDraft draft = new ProjectDraft();
BeanUtils.copyProperties(projectInfo, draft);
//写死 是否有主管单位
draft.setIsHigherSuperOrg(CommonEnum.YES.getCode());
draft.setIsSuperOrg(CommonEnum.YES.getCode());
draft.setUserId(String.valueOf(userId));
draft.setBuildOrgCode(user.getEmpPosUnitCode());
draft.setBuildOrgName(user.getEmpPosUnitName());


Loading…
Cancel
Save