|
@@ -94,6 +94,7 @@
|
|
LEFT JOIN club cb ON cs.userId = cb.userId
|
|
LEFT JOIN club cb ON cs.userId = cb.userId
|
|
left join user u on cs.userId = u.userID
|
|
left join user u on cs.userId = u.userID
|
|
where cs.userId = #{userId}
|
|
where cs.userId = #{userId}
|
|
|
|
+ AND cs.payStatus = '1'
|
|
<if test="startPayTime != null and startPayTime != '' and endPayTime != null and endPayTime != ''">
|
|
<if test="startPayTime != null and startPayTime != '' and endPayTime != null and endPayTime != ''">
|
|
and (payTime between #{startPayTime} and #{endPayTime})
|
|
and (payTime between #{startPayTime} and #{endPayTime})
|
|
</if>
|
|
</if>
|
|
@@ -130,6 +131,7 @@
|
|
LEFT JOIN cm_svip_user cu ON cs.userId = cu.userId
|
|
LEFT JOIN cm_svip_user cu ON cs.userId = cu.userId
|
|
left join user u on cs.userId = u.userID
|
|
left join user u on cs.userId = u.userID
|
|
<where>
|
|
<where>
|
|
|
|
+ AND cs.payStatus = '1'
|
|
<if test="clubName != null and clubName != ''">
|
|
<if test="clubName != null and clubName != ''">
|
|
and u.name like concat('%',#{clubName},'%')
|
|
and u.name like concat('%',#{clubName},'%')
|
|
</if>
|
|
</if>
|
|
@@ -171,4 +173,10 @@
|
|
where duration = #{pac}
|
|
where duration = #{pac}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="findDuration" resultType="java.lang.Integer">
|
|
|
|
+ select duration
|
|
|
|
+ from cm_svip_package
|
|
|
|
+ where id = #{packageId}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|