From 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期五, 23 二月 2024 12:19:55 +0800 Subject: [PATCH] 修改 --- modules/mainPart/src/main/java/com/zt/life/modules/qaAuditReport/service/QaAuditReportService.java | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/modules/mainPart/src/main/java/com/zt/life/modules/qaAuditReport/service/QaAuditReportService.java b/modules/mainPart/src/main/java/com/zt/life/modules/qaAuditReport/service/QaAuditReportService.java index adcec6a..b0c3ba5 100644 --- a/modules/mainPart/src/main/java/com/zt/life/modules/qaAuditReport/service/QaAuditReportService.java +++ b/modules/mainPart/src/main/java/com/zt/life/modules/qaAuditReport/service/QaAuditReportService.java @@ -3,6 +3,8 @@ import cn.hutool.core.convert.Convert; import com.zt.common.service.BaseService; import com.zt.common.utils.CommonUtils; +import com.zt.core.context.User; +import com.zt.core.context.UserContext; import com.zt.life.export.dto.WordFile; import com.zt.life.export.service.WordFileService; import com.zt.life.modules.baselineRelease.dto.BaselineDto; @@ -22,6 +24,7 @@ import com.zt.life.sys.service.SysOssConfigService; import com.zt.modules.coderule.service.SysCodeRuleService; import com.zt.modules.oss.service.SysOssService; +import com.zt.modules.sys.service.SysUserService; import com.zt.modules.workflow.dto.FlowInfoDto; import com.zt.modules.workflow.service.WorkflowService; import org.springframework.beans.factory.annotation.Autowired; @@ -69,9 +72,11 @@ @Autowired private QaAuditReportIncongruentService incongruentService; - @Autowired private WorkflowService workflowService; + + @Autowired + private SysUserService sysUserService; /** * 鍒嗛〉鏌ヨ * @@ -79,6 +84,11 @@ * @return */ public List<QaAuditReport> page(QueryFilter queryFilter) { + User user = UserContext.getUser(); + Integer secretClass = user.getSecretClass(); + Long deptId = user.getDeptId(); + queryFilter.getQueryParams().put("secretClass",secretClass); + queryFilter.getQueryParams().put("deptId",deptId); List<QaAuditReport> list = baseDao.getList(queryFilter.getQueryParams()); if (list != null && list.size() > 0) { workflowService.getRunFlow(list, "qashbg"); @@ -98,6 +108,11 @@ public QaAuditReportDto getDto(Long projectId, Long reportId) { QaAuditReportDto data = new QaAuditReportDto(); + Map<String, String> map = new HashMap<>(); + map.put("contract", "鍚堝悓璇勫闃舵"); + map.put("require", "娴嬭瘯闇�姹傚垎鏋愪笌绛栧垝闃舵"); + map.put("execute", "娴嬭瘯璁捐銆佸疄鐜颁笌鎵ц闃舵"); + map.put("summary", "娴嬭瘯鎬荤粨闃舵"); if (reportId != null) { data.setId(reportId); QaAuditReport auditReport = this.get(reportId); @@ -112,6 +127,10 @@ data.setAuditReport(auditReport); List<QaAuditReportIncongruent> incongruentList = incongruentService.createList(projectId); data.setIncongruentList(incongruentList); + } + for (QaAuditReportIncongruent incongruent : data.getIncongruentList()) { + String type = map.get(incongruent.getDiscoveryPhase()); + incongruent.setDiscoveryPhase(type); } if (projectId != null) { data.setProjectId(projectId); @@ -164,6 +183,12 @@ try { QaAuditReportDto dataObj = this.getDto(null, id); + String projectLeaderId=dataObj.getProject().getProjectLeader(); + String projectConfigerId=dataObj.getProject().getProjectTesters(); + String projectTestersId=dataObj.getProject().getProjectConfiger(); + dataObj.getProject().setProjectLeader(sysUserService.getNames(projectLeaderId)); + dataObj.getProject().setProjectTesters(sysUserService.getNames(projectTestersId)); + dataObj.getProject().setProjectConfiger(sysUserService.getNames(projectConfigerId)); String CheckerPath = "鏂囦欢鍥剧墖:" + getFilesPath.getSignPath(Convert.toLong(dataObj.getAuditReport().getCheckerId())); dataObj.getAuditReport().setChecker(CheckerPath); String SupervisorPath = "鏂囦欢鍥剧墖:" + getFilesPath.getSignPath(Convert.toLong(dataObj.getAuditReport().getSupervisorId())); -- Gitblit v1.9.1