|
@@ -61,7 +61,7 @@
|
|
|
FROM cm_order co
|
|
|
LEFT JOIN user u ON u.userID = co.userID
|
|
|
LEFT JOIN club c ON c.userID = u.userID
|
|
|
- WHERE 1=1 and u.userIdentity!=8
|
|
|
+ WHERE 1=1
|
|
|
<if test="userIdentity != null and userIdentity !=-1">
|
|
|
and c.firstClubType=#{userIdentity}
|
|
|
</if>
|
|
@@ -83,7 +83,7 @@
|
|
|
<select id="countClubVisitorRemarks" resultType="java.lang.Integer">
|
|
|
SELECT IFNULL(COUNT(*), 0)
|
|
|
FROM cm_visitor_remarks cvr
|
|
|
- WHERE 1=1 and cvr.clubId is null
|
|
|
+ WHERE 1=1
|
|
|
<if test="startCreateTime != null ">AND cvr.addTime >= #{startCreateTime}</if>
|
|
|
<if test="endCreateTime != null ">AND cvr.addTime <![CDATA[ <= ]]> #{endCreateTime}</if>
|
|
|
</select>
|
|
@@ -93,7 +93,7 @@
|
|
|
FROM cm_behavior_record_index cbri
|
|
|
LEFT JOIN user u ON u.userID = cbri.userID
|
|
|
LEFT JOIN club c ON c.userID = u.userID
|
|
|
- WHERE 1=1 and u.userIdentity!=8
|
|
|
+ WHERE 1=1
|
|
|
<if test="userId != null ">
|
|
|
and cbri.userID=#{userId}
|
|
|
</if>
|