feat: 风险分析, 新增字段

dev
zhanglei 2026-07-28 10:46:22 +08:00
parent b1595c3b8f
commit 892020de65
6 changed files with 13 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public class EvalRiskAnalysisExecutor implements EvalRiskAnalysisApi {
assertDraftStatus(cmd.getStatusCode());
EvalRiskAnalysisEntity entity = evalRiskAnalysisCmdConvertor.convertSaveCmdToE(cmd);
entity.setRiskFileUrl(cmd.getRiskFileUrl());
entity.setOrgId(project.getOrgId());
if (!StringUtils.hasText(entity.getProjectName())) {
entity.setProjectName(project.getProjectName());

View File

@ -107,4 +107,7 @@ public class EvalRiskAnalysisCO {
@ApiModelProperty("参与人员列表")
private List<EvalRiskParticipantCO> participants;
@ApiModelProperty(value = "风险分析附件")
private String riskFileUrl;
}

View File

@ -74,4 +74,7 @@ public class EvalRiskAnalysisSaveCmd {
@NotNull(message = "状态不能为空")
@ApiModelProperty(value = "节点状态1暂存 2已完成", required = true, example = "1")
private Integer statusCode;
@ApiModelProperty(value = "风险分析附件")
private String riskFileUrl;
}

View File

@ -1,5 +1,6 @@
package org.qinan.safetyeval.domain.entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDate;
@ -32,4 +33,7 @@ public class EvalRiskAnalysisEntity {
/** 1暂存 2已完成 */
private Integer statusCode;
private Long tenantId;
@ApiModelProperty(value = "风险分析附件")
private String riskFileUrl;
}

View File

@ -44,4 +44,5 @@ public class EvalRiskAnalysisDO {
private Long createId;
private Long updateId;
private String env;
private String riskFileUrl;
}

View File

@ -27,6 +27,7 @@ public class EvalRiskAnalysisGatewayImpl implements EvalRiskAnalysisGateway {
EvalRiskAnalysisDO dataObject = evalRiskAnalysisDoConvertor.convertEToDo(entity);
dataObject.setOrgId(orgContextResolver.resolveOrgId(entity.getOrgId()));
InsertFieldDefaults.apply(dataObject);
dataObject.setRiskFileUrl(entity.getRiskFileUrl());
evalRiskAnalysisMapper.insert(dataObject);
entity.setId(dataObject.getId());
return entity;