feat: 网元软件包查询支持通过文件版本和路径查询

This commit is contained in:
TsMask
2024-03-18 11:20:53 +08:00
parent bf16d2b984
commit 9690778945
3 changed files with 19 additions and 0 deletions

View File

@@ -125,6 +125,10 @@ func (r *NeSoftwareImpl) SelectList(neSoftware model.NeSoftware) []model.NeSoftw
conditions = append(conditions, "ne_type = ?")
params = append(params, neSoftware.NeType)
}
if neSoftware.Path != "" {
conditions = append(conditions, "path = ?")
params = append(params, neSoftware.Path)
}
if neSoftware.Version != "" {
conditions = append(conditions, "version = ?")
params = append(params, neSoftware.Version)