فهرست منبع

ross数据查询调整

huangzhiguo 1 سال پیش
والد
کامیت
673d1485bf
1فایلهای تغییر یافته به همراه5 افزوده شده و 7 حذف شده
  1. 5 7
      src/main/resources/mapper/CmBehaciorRecordDao.xml

+ 5 - 7
src/main/resources/mapper/CmBehaciorRecordDao.xml

@@ -60,10 +60,11 @@
                 AND spName = #{spName}
             </if>
             <if test="relevanceShop != null and relevanceShop != ''">
-                AND relevanceShop like concat('%',#{relevanceShop},'%')
-                <if test="behaviorType == 2">
-                    or behaviorType = #{behaviorType}
-                </if>
+                AND (relevanceShop like concat('%',#{relevanceShop},'%')
+                    <if test="behaviorType == 2">
+                        or behaviorType = #{behaviorType}
+                    </if>
+                    )
             </if>
             <if test="labels != null and labels.size > 0">
                 AND
@@ -127,9 +128,6 @@
             </if>
             <if test="relevanceShop != null and relevanceShop != ''">
                 AND relevanceShop like concat('%',#{relevanceShop},'%')
-                <if test="behaviorType == 2">
-                    or behaviorType = #{behaviorType}
-                </if>
             </if>
             <if test="labels != null and labels.size > 0">
                 AND