瀏覽代碼

申报项目 是否是上级主管

tags/24080901
PoffyZhang 1 年之前
父節點
當前提交
99c973e8ce
共有 2 個文件被更改,包括 14 次插入1 次删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存