kobe6258 4 сар өмнө
parent
commit
636577dece

+ 2 - 2
controllers/product.go

@@ -77,9 +77,9 @@ func (this *ProductController) UnSetProductList() {
 	if KeyWord != "" {
 		switch ProductType {
 		case "report":
-			condition += " AND title like '%?%'"
+			condition += " AND title like '%" + KeyWord + "%' "
 		case "media":
-			condition += " AND media_name like '%?%'"
+			condition += " AND media_name like '%" + KeyWord + "%' "
 		}
 		pars = append(pars, KeyWord)
 	}