Browse Source

获取未盖章文件修改

tags/24080901
CMM 1 year ago
parent
commit
e39558143b
2 changed files with 16 additions and 12 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/Project.java
  2. +15
    -11
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/Project.java View File

@@ -373,7 +373,7 @@ public class Project implements Serializable {
@ApiModelProperty("区县预审上级条线主管单位盖章审核意见")
private String countrySealAuditOpinion;

@ApiModelProperty("区县预审上级条线主管盖章审核日期")
@ApiModelProperty("区县预审上级条线主管单位盖章审核日期")
private String countrySealAuditDate;

@ApiModelProperty("区县预审盖章上级条线主管单位印章编号")


+ 15
- 11
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -1308,20 +1308,24 @@ public class TodoCenterManage {
// 上传OSS
FileResultVO resultVo = fileService.upload(multipartFile, "default");

// 将返回的文件ID更新到项目库中对应的项目下
// 将带审核意见的返回的文件ID更新到项目库中对应的项目下
Project declaredProject = projectService.getById(projectId);
// 根据模版名称判断是预审申请单还是建设方案申请单
if (TodoCenterConstant.SealTemplate.CITY_TEMPLATE.equals(templateName) ||
TodoCenterConstant.SealTemplate.COUNTRY_TEMPLATE.equals(templateName)) {
declaredProject.setPretrialFileId(resultVo.getId());
declaredProject.setPretrialFileName(resultVo.getOriginalFileName());
declaredProject.setUpdateOn(LocalDateTime.now());
} else if (TodoCenterConstant.SealTemplate.CONSTRUCT_TEMPLATE.equals(templateName)) {
declaredProject.setConstructFileId(resultVo.getId());
declaredProject.setConstructFileName(resultVo.getOriginalFileName());
declaredProject.setUpdateOn(LocalDateTime.now());
String superOrgOpinion = paramsMap.getString("superOrgOpinion");
String higherOrgOpinion = paramsMap.getString("higherOrgOpinion");
if (StringUtils.isNotBlank(superOrgOpinion) || StringUtils.isNotBlank(higherOrgOpinion)) {
if (TodoCenterConstant.SealTemplate.CITY_TEMPLATE.equals(templateName) ||
TodoCenterConstant.SealTemplate.COUNTRY_TEMPLATE.equals(templateName)) {
declaredProject.setPretrialFileId(resultVo.getId());
declaredProject.setPretrialFileName(resultVo.getOriginalFileName());
declaredProject.setUpdateOn(LocalDateTime.now());
} else if (TodoCenterConstant.SealTemplate.CONSTRUCT_TEMPLATE.equals(templateName)) {
declaredProject.setConstructFileId(resultVo.getId());
declaredProject.setConstructFileName(resultVo.getOriginalFileName());
declaredProject.setUpdateOn(LocalDateTime.now());
}
projectService.updateById(declaredProject);
}
projectService.updateById(declaredProject);
try {
if (null != htmlInputStream) {
htmlInputStream.close();


Loading…
Cancel
Save