瀏覽代碼

FAQ 검색어 내용까지 검색되게 수정

gagamel 5 年之前
父節點
當前提交
78524617cd
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      style24.front/src/main/java/com/style24/persistence/mybatis/TsfFaq.xml

+ 4 - 4
style24.front/src/main/java/com/style24/persistence/mybatis/TsfFaq.xml

@@ -37,8 +37,8 @@
 		<if test="searchTxt != null and searchTxt !=''">
 		AND    (
 		        LOWER(QUESTION) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
-		        -- OR
-		        -- LOWER(ANSWER) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
+		        OR
+		        LOWER(ANSWER) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
 		       )
 		</if>
 	</select>
@@ -61,8 +61,8 @@
 		<if test="searchTxt != null and searchTxt !=''">
 		AND    (
 		        LOWER(QUESTION) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
-		        -- OR
-		        -- LOWER(ANSWER) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
+		        OR
+		        LOWER(ANSWER) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
 		       )
 		</if>
 		ORDER  BY REG_DT DESC