刘俊驰 9 maanden geleden
bovenliggende
commit
f14bf9b464

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/VipCardRecordMapper.xml

@@ -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>