|
@@ -157,9 +157,9 @@
|
|
|
<foreach collection="userIdList" separator="," item="item" open="(" close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- and t.client_type_ = 'STUDENT'
|
|
|
+ and t.client_type_ = #{clientType}
|
|
|
and t.efficient_flag_ = 1
|
|
|
group by t.user_id_) m
|
|
|
- left join vip_card_record vcr on m.userId = vcr.user_id_ and vcr.end_time_ > now() and now() >= vcr.start_time_ and efficient_flag_ = 1
|
|
|
+ left join vip_card_record vcr on m.userId = vcr.user_id_ and vcr.end_time_ > now() and now() >= vcr.start_time_ and efficient_flag_ = 1 and vcr.client_type_ = #{clientType}
|
|
|
</select>
|
|
|
</mapper>
|