| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord; |
| | | |
| | | public interface UserSystemCouponGiveRecordMapper extends BaseMapper<UserSystemCouponGiveRecord> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
|
| | |
|
| | | public interface UserSystemCouponGiveRecordMapper extends BaseMapper<UserSystemCouponGiveRecord> {
|
| | |
|
| | | |
| | | /**
|
| | | * 赠送记录
|
| | | * @param uid 赠送人id
|
| | | * @param couponId 券id
|
| | | * @return
|
| | | */
|
| | | UserSystemCouponGiveRecord getRecordByUidAndCouponId(@Param("uid") Long uid, @Param("couponId") Long couponId);
|
| | | |
| | | |
| | | /**
|
| | | * 赠送超时未领取的
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCouponGiveRecord> overdueList(@Param("count") int count);
|
| | | |
| | | |
| | | /**
|
| | | * 赠送超时未领取的
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCouponGiveRecord> overdueListByUser(@Param("uid") Long uid);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 领取的id
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | UserSystemCouponGiveRecord getByReceiveId(@Param("receiveId") Long receiveId);
|
| | | |
| | | /**
|
| | | * 查询券赠送信息
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | UserSystemCouponGiveRecord getByCouponId(@Param("couponId") Long couponId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询赠送记录
|
| | | * @param start
|
| | | * @param count
|
| | | * @param type
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCouponGiveRecord> listGiveRecord(@Param("start") long start, @Param("count") int count, |
| | | @Param("type") String type, @Param("state")Integer state);
|
| | | |
| | | long countGiveRecord(@Param("type") String type, @Param("state")Integer state);
|
| | | |
| | | } |