|
|
@ -25,7 +25,7 @@ import java.util.List; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Repository |
|
|
|
@Repository |
|
|
|
public interface YxStoreCouponIssueMapper extends CoreMapper<YxStoreCouponIssue> { |
|
|
|
public interface YxStoreCouponIssueMapper extends CoreMapper<YxStoreCouponIssue> { |
|
|
|
@Select("<script>select A.cid,A.end_time as endTime,A.start_time as startTime,A.cname,A.ctype," + |
|
|
|
@Select("<script>select A.cid,A.use_end_time as endTime,A.start_time as startTime,A.cname,A.ctype," + |
|
|
|
"A.is_permanent as isPermanent,A.remain_count as remainCount," + |
|
|
|
"A.is_permanent as isPermanent,A.remain_count as remainCount," + |
|
|
|
"A.total_count as totalCount,A.id,B.coupon_price as couponPrice," + |
|
|
|
"A.total_count as totalCount,A.id,B.coupon_price as couponPrice," + |
|
|
|
"B.use_min_price as useMinPrice" + |
|
|
|
"B.use_min_price as useMinPrice" + |
|
|
@ -33,7 +33,7 @@ public interface YxStoreCouponIssueMapper extends CoreMapper<YxStoreCouponIssue> |
|
|
|
"on A.cid = B.id " + |
|
|
|
"on A.cid = B.id " + |
|
|
|
"where A.status =1 <if test='type == 1'> AND B.type = #{type} AND FIND_IN_SET(#{productId},product_id)</if> " + |
|
|
|
"where A.status =1 <if test='type == 1'> AND B.type = #{type} AND FIND_IN_SET(#{productId},product_id)</if> " + |
|
|
|
"<if test='type == 0'> AND B.type in (0,1)</if>" + |
|
|
|
"<if test='type == 0'> AND B.type in (0,1)</if>" + |
|
|
|
" AND ( A.start_time < now() AND A.end_time > now() ) " + |
|
|
|
" AND ( A.start_time < now() AND A.use_end_time > now() ) " + |
|
|
|
" AND A.is_del = 0 AND " + |
|
|
|
" AND A.is_del = 0 AND " + |
|
|
|
"( A.remain_count > 0 OR A.is_permanent = 1 ) ORDER BY B.sort DESC</script>") |
|
|
|
"( A.remain_count > 0 OR A.is_permanent = 1 ) ORDER BY B.sort DESC</script>") |
|
|
|
List<YxStoreCouponIssueQueryVo> selecCoupontList(Page page,@Param("type") Integer type, |
|
|
|
List<YxStoreCouponIssueQueryVo> selecCoupontList(Page page,@Param("type") Integer type, |
|
|
|