Bladeren bron

条件查询问题处理

yfh 1 maand geleden
bovenliggende
commit
94bcff1091
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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>