|
|
@@ -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.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* <p> |
|
|
@@ -257,4 +256,13 @@ public class ProjectReviewManage { |
|
|
|
return queryState; |
|
|
|
} |
|
|
|
|
|
|
|
public void uploadConstructionPlanSealFile(UploadConstructionPlanSealFileReq req) { |
|
|
|
Wrapper<Project> wrapper = Wrappers.lambdaUpdate(Project.class) |
|
|
|
.set(Project::getConstructionPlanSealFile, req.getConstructionPlanSealFile()) |
|
|
|
.set(Project::getUpdateOn, LocalDateTime.now()) |
|
|
|
.set(Project::getUpdateBy, LoginUserUtil.getUserId()) |
|
|
|
.eq(Project::getId, req.getProjectId()); |
|
|
|
projectService.update(wrapper); |
|
|
|
} |
|
|
|
|
|
|
|
} |