diff --git a/cve-vulner-manager/models/function.go b/cve-vulner-manager/models/function.go index 640289eb2fc2ba93274051e69820e5be16151ebc..7f417e491591f5618ec724482323994011524e9c 100644 --- a/cve-vulner-manager/models/function.go +++ b/cve-vulner-manager/models/function.go @@ -4,6 +4,7 @@ import "strings" const ( SaFileRecordSa = "sa" + SaFileRecordBa = "ba" SaFileRecordHotPatch = "hotPatch" ) @@ -12,5 +13,9 @@ func (sa *SaFileRecord) GenSaType() string { return SaFileRecordHotPatch } + if strings.Contains(sa.FileName, "BA") { + return SaFileRecordBa + } + return SaFileRecordSa }