Bläddra i källkod

条件查询问题处理

yfh 1 månad sedan
förälder
incheckning
94bcff1091

+ 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>