| | |
| | | public interface UserCouponRecordMapper extends BaseMapper<UserCouponRecord> { |
| | | |
| | | |
| | | /** |
| | | * 获取可用优惠券数量 |
| | | * @param uid |
| | | * @param companyId |
| | | * @param state |
| | | * @param couponUseType |
| | | * @return |
| | | */ |
| | | int queryAvailable(@Param("uid") Integer uid, @Param("companyId") Integer companyId, |
| | | @Param("state") Integer state, @Param("couponUseType") Integer couponUseType, |
| | | @Param("money") Double money); |
| | | |
| | | |
| | | /** |
| | | * 获取优惠券列表 |
| | | * @param uid |
| | | * @param companyId |
| | | * @param state |
| | | * @param couponUseType |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryCoupon(@Param("uid") Integer uid, @Param("companyId") Integer companyId, |
| | | @Param("state") Integer state, @Param("couponUseType") Integer couponUseType, |
| | | @Param("money") Double money, @Param("pageNum") Integer pageNum, |
| | | @Param("size") Integer size); |
| | | |
| | | /** |
| | | * 获取优惠券列表 |
| | | * @param state |
| | | * @param pageNum |
| | | * @param size |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> queryMyCoupons(@Param("state") Integer state, @Param("pageNum") Integer pageNum, |
| | | @Param("size") Integer size, @Param("uid") Integer uid); |
| | | |
| | | |
| | | /** |
| | | * 修改过期状态 |
| | | */ |
| | | void updateTimeOut(); |
| | | } |