Browse Source

feature 解决求和问题

xiahan 1 year ago
parent
commit
26d1669ab5

+ 9 - 1
cx-knowledge-base/cx-knowledge-base-common/src/main/resources/mybatis/KbKnowledgebaseSearchKeywordsDao.xml

@@ -152,7 +152,15 @@
                 </foreach>
                 <if test="systemId=='all'">
                     union all
-                    <include refid="kbSQL"></include>
+                    SELECT
+                    kkl.ID AS dataId
+                    FROM
+                    kb_knowledge_ledger kkl
+                    INNER JOIN sys_module sm ON sm.ID = 'b03686d4b8b54b96a6d310be8bd925a4'
+                    WHERE
+                    kkl.DELETED = '0'
+                    <bind name="pattern" value="'%' + searchContent + '%'"/>
+                    and kkl.TITLE like #{pattern}
                 </if>
             </otherwise>
         </choose>