zhijiezhao 1 سال پیش
والد
کامیت
b9e56ab456
2فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 6 0
      src/main/resources/mapper/CmBehaciorRecordDao.xml
  2. 6 0
      src/main/resources/mapper/user/CmClubRemarksDao.xml

+ 6 - 0
src/main/resources/mapper/CmBehaciorRecordDao.xml

@@ -63,6 +63,9 @@
         FROM cm_behavior_record_index
         <where>
             delFlag = 0
+            <if test="clubId != null">
+                AND clubId = #{clubId}
+            </if>
             <if test="ip != null and ip != ''">
                 AND IP = #{ip}
             </if>
@@ -136,6 +139,9 @@
         addTime
         FROM cm_behavior_record_today
         <where>
+            <if test="cluId != null">
+                AND clubId = #{clubId}
+            </if>
             <if test="ip != null and ip != ''">
                 AND IP = #{ip}
             </if>

+ 6 - 0
src/main/resources/mapper/user/CmClubRemarksDao.xml

@@ -91,6 +91,9 @@
         LEFT JOIN shop sh ON sh.shopID = p.shopID
         <where>
             s.validFlag = 1 and s.serviceProviderID not in (1371, 1342)
+            <if test="clubId != null">
+                AND ccr.clubId = #{clubId}
+            </if>
             <if test="remarks != null and remarks !=''">
                 AND ccr.remarks LIKE concat('%',#{remarks},'%')
             </if>
@@ -152,6 +155,9 @@
         LEFT JOIN product p ON p.productID = ccr.productID
         LEFT JOIN shop sh ON sh.shopID = p.shopID
         <where>
+            <if test="clubId != null">
+                AND ccr.clubId = #{clubId}
+            </if>
             <if test="remarks != null and remarks !=''">
                 AND ccr.remarks LIKE concat('%',#{remarks},'%')
             </if>