zwxi 1 rok temu
rodzic
commit
d448baad1c
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      controllers/data_manage/smm_api.go

+ 3 - 2
controllers/data_manage/smm_api.go

@@ -111,8 +111,9 @@ func (this *EdbInfoController) SmmApiList() {
 			for _, v := range keyWordArr {
 				condition += ` CONCAT(index_name,index_code) LIKE '%` + v + `%' OR`
 			}
-			condition = strings.TrimRight(condition, "OR")
-			condition += " ) "
+			condition += ` '%` + strings.Replace(keyword, " ", "", -1) + `%' ) `
+			//condition = strings.TrimRight(condition, "OR")
+			//condition += " ) "
 		}
 	}