瀏覽代碼

条件查询问题处理

yfh 1 月之前
父節點
當前提交
94bcff1091
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs-service-system/src/main/resources/mapper/crm/CrmCustomerMapper.xml

+ 2 - 0
fs-service-system/src/main/resources/mapper/crm/CrmCustomerMapper.xml

@@ -368,6 +368,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </foreach>
         </if>
         <if test="maps.tags != null and  maps.tags != ''">
+            and
             <foreach collection="maps.tags.split(',')" item="tag" open="(" separator="OR" close=")">
                 find_in_set(#{tag},c.tags)
             </foreach>
@@ -438,6 +439,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </foreach>
         </if>
         <if test="maps.tags != null and  maps.tags != ''">
+            and
             <foreach collection="maps.tags.split(',')" item="tag" open="(" separator="OR" close=")">
                 find_in_set(#{tag},c.tags)
             </foreach>