diff --git a/cve-vulner-manager/conf/product_app.conf b/cve-vulner-manager/conf/product_app.conf index b8396b6af15a2673df675dfef0e9e713ad03c680..8293b1ccc446b479cf560c23ca3c77bf3e672170 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 1b29d02ddb9ce1d75512dd2d7603f4ba052ba994..802acff5ec4ab7802c697bb3e2f97598dea8c009 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 }