|
|
@@ -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 " +
|
|
|
+ "where cu.is_del=0 and c.type!=3 and cu.status=0 and cu.limit_time > now() " +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and cu.status =#{maps.status} " +
|
|
|
"</if>" +
|
|
|
@@ -99,18 +99,24 @@ public interface FsStoreCouponUserScrmMapper
|
|
|
"<if test = 'maps.endTime != null and maps.endTime != \"\" '> " +
|
|
|
"and date_format(cu.create_time,'%y%m%d') <= date_format(#{maps.endTime},'%y%m%d') " +
|
|
|
"</if>" +
|
|
|
+ "<if test = 'maps.userId != null '> " +
|
|
|
+ "and cu.user_id =#{maps.userId} " +
|
|
|
+ "</if>" +
|
|
|
"order by cu.id desc " +
|
|
|
"</script>"})
|
|
|
List<FsStoreCouponUserVO> selectFsStoreCouponUserListVO(@Param("maps") FsStoreCouponUserScrm fsStoreCouponUser);
|
|
|
@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 " +
|
|
|
+ "where cu.is_del=0 and c.type=3 and cu.status=0 " +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and cu.status =#{maps.status} " +
|
|
|
"</if>" +
|
|
|
"<if test = 'maps.isDel != null '> " +
|
|
|
"and cu.is_del =#{maps.isDel} " +
|
|
|
"</if>" +
|
|
|
+ "<if test = 'maps.userId != null '> " +
|
|
|
+ "and cu.user_id =#{maps.userId} " +
|
|
|
+ "</if>" +
|
|
|
"</script>"})
|
|
|
List<FsStoreCouponUserVO> selectFsStoreCouponUserListVOForCash(@Param("maps")FsStoreCouponUserScrm fsStoreCouponUser);
|
|
|
|