feat: 风险分析, 新增字段
parent
b1595c3b8f
commit
892020de65
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -107,4 +107,7 @@ public class EvalRiskAnalysisCO {
|
|||
|
||||
@ApiModelProperty("参与人员列表")
|
||||
private List<EvalRiskParticipantCO> participants;
|
||||
|
||||
@ApiModelProperty(value = "风险分析附件")
|
||||
private String riskFileUrl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,4 +44,5 @@ public class EvalRiskAnalysisDO {
|
|||
private Long createId;
|
||||
private Long updateId;
|
||||
private String env;
|
||||
private String riskFileUrl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue