From f298a85b640879b1a84b6f3e882c7fb8755b4339 Mon Sep 17 00:00:00 2001 From: linbangquan <1437892690@qq.com> Date: Mon, 13 Nov 2023 17:21:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=90=8E=E7=AB=AF-CVE?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=89=AB=E6=8F=8F=E7=BB=93=E6=9E=9C=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=AB=98=E5=8D=B1=E4=B8=AA=E6=95=B0=E5=88=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E5=BF=83=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1023906381529088]后端-CVE依赖扫描结果展示高危个数到版本中心上 http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1023906381529088 --- .../deploy/dto/version/DeployVersionVo.java | 95 +++++++++++++------ 1 file changed, 64 insertions(+), 31 deletions(-) diff --git a/src/main/java/neatlogic/framework/deploy/dto/version/DeployVersionVo.java b/src/main/java/neatlogic/framework/deploy/dto/version/DeployVersionVo.java index aa78a43..36a2975 100644 --- a/src/main/java/neatlogic/framework/deploy/dto/version/DeployVersionVo.java +++ b/src/main/java/neatlogic/framework/deploy/dto/version/DeployVersionVo.java @@ -21,49 +21,49 @@ import java.util.List; */ public class DeployVersionVo extends BaseEditorVo { - @EntityField(name = "id", type = ApiParamType.LONG) + @EntityField(name = "common.id", type = ApiParamType.LONG) private Long id; - @EntityField(name = "版本", type = ApiParamType.STRING) + @EntityField(name = "term.deploy.version", type = ApiParamType.STRING) private String version; - @EntityField(name = "应用系统id", type = ApiParamType.LONG) + @EntityField(name = "term.cmdb.appsystemid", type = ApiParamType.LONG) private Long appSystemId; - @EntityField(name = "应用系统名称", type = ApiParamType.STRING) + @EntityField(name = "term.cmdb.appsystemname", type = ApiParamType.STRING) private String appSystemName; - @EntityField(name = "应用系统简称", type = ApiParamType.STRING) + @EntityField(name = "term.cmdb.appsystemabbrname", type = ApiParamType.STRING) private String appSystemAbbrName; - @EntityField(name = "应用模块id", type = ApiParamType.LONG) + @EntityField(name = "term.cmdb.appmoduleid", type = ApiParamType.LONG) private Long appModuleId; - @EntityField(name = "应用模块名称", type = ApiParamType.STRING) + @EntityField(name = "term.cmdb.appmodulename", type = ApiParamType.STRING) private String appModuleName; - @EntityField(name = "应用模块简称", type = ApiParamType.STRING) + @EntityField(name = "term.cmdb.appmoduleabbrname", type = ApiParamType.STRING) private String appModuleAbbrName; - @EntityField(name = "是否封版", type = ApiParamType.INTEGER) + @EntityField(name = "term.deploy.isfreeze", type = ApiParamType.INTEGER) private Integer isFreeze; - @EntityField(name = "备注", type = ApiParamType.STRING) + @EntityField(name = "common.description", type = ApiParamType.STRING) private String description; - @EntityField(name = "仓库类型", type = ApiParamType.STRING) + @EntityField(name = "nmdac.savedeployciapi.input.param.desc.repotype", type = ApiParamType.STRING) private String repoType; - @EntityField(name = "仓库地址", type = ApiParamType.STRING) + @EntityField(name = "term.deploy.repo", type = ApiParamType.STRING) private String repo; - @EntityField(name = "主干", type = ApiParamType.STRING) + @EntityField(name = "term.deploy.trunk", type = ApiParamType.STRING) private String trunk; - @EntityField(name = "分支", type = ApiParamType.STRING) + @EntityField(name = "common.branch", type = ApiParamType.STRING) private String branch; - @EntityField(name = "标签", type = ApiParamType.STRING) + @EntityField(name = "common.tag", type = ApiParamType.STRING) private String tag; - @EntityField(name = "标签目录", type = ApiParamType.STRING) + @EntityField(name = "common.tagsdir", type = ApiParamType.STRING) private String tagsDir; - @EntityField(name = "开始Rev号", type = ApiParamType.STRING) + @EntityField(name = "term.deploy.startdev", type = ApiParamType.STRING) private String startRev; - @EntityField(name = "结束Rev号", type = ApiParamType.STRING) + @EntityField(name = "term.deploy.endrev", type = ApiParamType.STRING) private String endRev; - @EntityField(name = "应用系统id列表", type = ApiParamType.JSONARRAY) + @EntityField(name = "term.appsystemidlist", type = ApiParamType.JSONARRAY) private List appSystemIdList; - @EntityField(name = "应用模块id列表", type = ApiParamType.JSONARRAY) + @EntityField(name = "term.cmdb.appmoduleidlist", type = ApiParamType.JSONARRAY) private List appModuleIdList; - @EntityField(name = "环境列表", type = ApiParamType.JSONARRAY) + @EntityField(name = "term.cmdb.envlist", type = ApiParamType.JSONARRAY) private List envList; - @EntityField(name = "编译号列表", type = ApiParamType.JSONARRAY) + @EntityField(name = "term.deploy.buildnolist", type = ApiParamType.JSONARRAY) private List buildNoList; @JSONField(serialize = false) private JSONObject startTimeRange; @@ -73,11 +73,11 @@ public class DeployVersionVo extends BaseEditorVo { private JSONObject runnerGroup; @JSONField(serialize = false) private String runnerGroupStr; - @EntityField(name = "编译次数", type = ApiParamType.INTEGER) + @EntityField(name = "term.deploy.compilecount", type = ApiParamType.INTEGER) private Integer compileCount = 0; - @EntityField(name = "编译成功次数", type = ApiParamType.INTEGER) + @EntityField(name = "term.deploy.compilesuccesscount", type = ApiParamType.INTEGER) private Integer compileSuccessCount = 0; - @EntityField(name = "编译失败次数", type = ApiParamType.INTEGER) + @EntityField(name = "term.deploy.compilefailcount", type = ApiParamType.INTEGER) private Integer compileFailCount = 0; @JSONField(serialize = false) private Integer isCompiled; // 是否编译成功 @@ -87,25 +87,34 @@ public class DeployVersionVo extends BaseEditorVo { @JSONField(serialize = false) List authorityActionList; //权限列表 - @EntityField(name = "文件增加数", type = ApiParamType.INTEGER) + @EntityField(name = "nmdav.savedeployversioncommitanalyzeapi.input.param.desc.fileaddcount", type = ApiParamType.INTEGER) private Integer fileAddCount; - @EntityField(name = "文件删除数", type = ApiParamType.INTEGER) + @EntityField(name = "nmdav.savedeployversioncommitanalyzeapi.input.param.desc.filedeletecount", type = ApiParamType.INTEGER) private Integer fileDeleteCount; - @EntityField(name = "文件修改数", type = ApiParamType.INTEGER) + @EntityField(name = "nmdav.savedeployversioncommitanalyzeapi.input.param.desc.filemodifycount", type = ApiParamType.INTEGER) private Integer fileModifyCount; - @EntityField(name = "代码行减少数", type = ApiParamType.INTEGER) + @EntityField(name = "nmdav.savedeployversioncommitanalyzeapi.input.param.desc.linedeletecount", type = ApiParamType.INTEGER) private Integer lineDeleteCount; - @EntityField(name = "代码行增加数", type = ApiParamType.INTEGER) + @EntityField(name = "nmdav.savedeployversioncommitanalyzeapi.input.param.desc.lineaddcount", type = ApiParamType.INTEGER) private Integer lineAddCount; - @EntityField(name = "需求数", type = ApiParamType.INTEGER) + @EntityField(name = "term.deploy.issuecount", type = ApiParamType.INTEGER) private Integer issueCount; + @EntityField(name = "term.deploy.highcvecount", type = ApiParamType.LONG) + private Long highCveCount; + + @EntityField(name = "term.deploy.criticalcvecount", type = ApiParamType.LONG) + private Long criticalCveCount; + + @EntityField(name = "term.deploy.criticalstarcvecount", type = ApiParamType.LONG) + private Long criticalStarCveCount; + public DeployVersionVo() { } @@ -442,4 +451,28 @@ public class DeployVersionVo extends BaseEditorVo { public void setIssueCount(Integer issueCount) { this.issueCount = issueCount; } + + public Long getHighCveCount() { + return highCveCount; + } + + public void setHighCveCount(Long highCveCount) { + this.highCveCount = highCveCount; + } + + public Long getCriticalCveCount() { + return criticalCveCount; + } + + public void setCriticalCveCount(Long criticalCveCount) { + this.criticalCveCount = criticalCveCount; + } + + public Long getCriticalStarCveCount() { + return criticalStarCveCount; + } + + public void setCriticalStarCveCount(Long criticalStarCveCount) { + this.criticalStarCveCount = criticalStarCveCount; + } } -- Gitee