|
|
@@ -86,7 +86,7 @@ public interface FsStoreCouponUserScrmMapper
|
|
|
List<FsStoreCouponUserScrm> selectFsStoreCouponUserListByEnable(@Param("maps")FsCouponUserEnableParam param);
|
|
|
@Select({"<script> " +
|
|
|
"select cu.*,u.nickname,u.phone from fs_store_coupon_user_scrm cu inner join fs_user u on u.user_id=cu.user_id inner join fs_store_coupon_scrm c on c.coupon_id = cu.coupon_id " +
|
|
|
- "where cu.is_del=0 and c.type!=3 and cu.status=0 and cu.limit_time > now() " +
|
|
|
+ "where cu.is_del=0 and c.type!=3 and cu.status in (0,1,2) and cu.limit_time > now() " +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and cu.status =#{maps.status} " +
|
|
|
"</if>" +
|
|
|
@@ -141,7 +141,7 @@ public interface FsStoreCouponUserScrmMapper
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
"select cu.*,u.nickname,u.phone from fs_store_coupon_user_scrm cu inner join fs_user u on u.user_id=cu.user_id inner join fs_store_coupon_scrm c on c.coupon_id = cu.coupon_id " +
|
|
|
- "where cu.is_del=0 and c.type=3 and cu.status=0 " +
|
|
|
+ "where cu.is_del=0 and c.type=3 and cu.status in (0,4) " +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and cu.status =#{maps.status} " +
|
|
|
"</if>" +
|