diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/controller/ProjectReviewController.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/controller/ProjectReviewController.java index 89c38f5..7efd6a0 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/controller/ProjectReviewController.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/controller/ProjectReviewController.java @@ -5,6 +5,7 @@ import com.hz.pm.api.projectdeclared.manage.ProjectReviewManage; import com.hz.pm.api.projectdeclared.model.req.ProjectReviewApplyReq; import com.hz.pm.api.projectdeclared.model.vo.ReviewProgressStatisticsVO; import com.hz.pm.api.projectlib.model.req.ProjectListReq; +import com.hz.pm.api.projectlib.model.req.UploadConstructionPlanSealFileReq; import com.hz.pm.api.projectlib.model.vo.ProjectLibListItemVO; import com.ningdatech.basic.model.PageVo; import com.ningdatech.log.annotation.WebLog; @@ -13,6 +14,8 @@ import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; +import javax.validation.Valid; + /** *
* ProjectReviewController @@ -36,6 +39,13 @@ public class ProjectReviewController { projectReviewManage.projectReviewApply(req); } + @ApiOperation("上传项目建设方案盖章文件") + @WebLog("上传项目建设方案盖章文件") + @PostMapping("/uploadConstructionPlanSealFile") + public void uploadConstructionPlanSealFile(@Valid @RequestBody UploadConstructionPlanSealFileReq req) { + projectReviewManage.uploadConstructionPlanSealFile(req); + } + @ApiOperation("项目评审详情") @GetMapping("/detail/{projectId}") public ProjectReviewResultDTO projectReviewDetail(@PathVariable Long projectId) { diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java index 5a8e99a..2b5690e 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/ProjectReviewManage.java @@ -1,6 +1,7 @@ package com.hz.pm.api.projectdeclared.manage; import cn.hutool.core.bean.BeanUtil; +import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -22,6 +23,7 @@ import com.hz.pm.api.projectlib.model.entity.Project; import com.hz.pm.api.projectlib.model.entity.ProjectInst; import com.hz.pm.api.projectlib.model.enumeration.status.ProjectStatus; import com.hz.pm.api.projectlib.model.req.ProjectListReq; +import com.hz.pm.api.projectlib.model.req.UploadConstructionPlanSealFileReq; import com.hz.pm.api.projectlib.model.vo.ProjectLibListItemVO; import com.hz.pm.api.projectlib.service.IProjectInstService; import com.hz.pm.api.projectlib.service.IProjectService; @@ -42,11 +44,8 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; +import java.time.LocalDateTime; +import java.util.*; /** *
@@ -257,4 +256,13 @@ public class ProjectReviewManage {
return queryState;
}
+ public void uploadConstructionPlanSealFile(UploadConstructionPlanSealFileReq req) {
+ Wrapper