| | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.PushCouponRecord;
|
| | |
|
| | | public interface PushCouponRecordMapper extends BaseMapper<PushCouponRecord>{
|
| | | |
| | | /**
|
| | | * 统计推送领取券数量
|
| | | * @param pushId
|
| | | * @return
|
| | | */
|
| | | long countByPushId(@Param("pushId") Long pushId);
|
| | | |
| | | /**
|
| | | * 查询用户的领取券记录
|
| | | * @param pushId
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<PushCouponRecord> listByUid(@Param("uid") Long uid);
|
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.PushCouponRecord; |
| | | |
| | | public interface PushCouponRecordMapper extends BaseMapper<PushCouponRecord>{ |
| | | |
| | | /** |
| | | * 统计推送领取券数量 |
| | | * @param pushId |
| | | * @return |
| | | */ |
| | | long countByPushId(@Param("pushId") Long pushId); |
| | | |
| | | /** |
| | | * 查询用户的领取券记录 |
| | | * @param pushId |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<PushCouponRecord> listByUid(@Param("uid") Long uid); |
| | | |
| | | } |