浏览代码

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