From 7f41af6dbee3f5d86d81a5ebd8ed21720d75099a Mon Sep 17 00:00:00 2001 From: yangwei999 <348134071@qq.com> Date: Fri, 20 Oct 2023 09:40:47 +0800 Subject: [PATCH] change sync sa logic --- cve-vulner-manager/conf/product_app.conf | 2 +- cve-vulner-manager/models/issue.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cve-vulner-manager/conf/product_app.conf b/cve-vulner-manager/conf/product_app.conf index b8396b6..8293b1c 100644 --- a/cve-vulner-manager/conf/product_app.conf +++ b/cve-vulner-manager/conf/product_app.conf @@ -128,7 +128,7 @@ getv8token = 0 0 */6 * * * setissueprocdateflag = 1 setissueprocdate = 0 */30 * * * * # sync isste plan date form majun -syncissuedateflag = 2 +syncissuedateflag = 1 syncissuedate = 0 0 7,13 * * * releaseUnaffectedCveflag = 1 diff --git a/cve-vulner-manager/models/issue.go b/cve-vulner-manager/models/issue.go index 1b29d02..802acff 100644 --- a/cve-vulner-manager/models/issue.go +++ b/cve-vulner-manager/models/issue.go @@ -607,9 +607,9 @@ func QueryIssueTemplateByLink(beforeTime string, prcnum int, o := orm.NewOrm() var it []IssueTemplate num, err := o.Raw("select *"+ - " from cve_issue_template where status = ? "+ + " from cve_issue_template where status in (1,2,3) "+ "and template_id > ? "+ - "order by template_id asc limit ?", status, templateId, prcnum).QueryRows(&it) + "order by template_id asc limit ?", templateId, prcnum).QueryRows(&it) if err == nil && num > 0 { return it, nil } -- Gitee