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.UserSystemCoupon;
|
import com.yeshi.fanli.vo.user.UserSystemCouponVO;
|
|
public interface UserSystemCouponMapper extends BaseMapper<UserSystemCoupon> {
|
|
List<UserSystemCoupon> getUserCouponList(@Param("start") long start, @Param("count") int count,
|
@Param("uid") Long uid);
|
|
List<UserSystemCouponVO> getUserCouponVOList(@Param("start") long start, @Param("count") int count,
|
@Param("uid") Long uid);
|
|
long countUserCouponList(@Param("uid") Long uid);
|
|
/**
|
* 根据券id查询可使用券
|
* @param uid
|
* @param typeList
|
* @return
|
*/
|
List<UserSystemCouponVO> getEnableListByCouponId(@Param("uid") Long uid, @Param("activated") Integer activated,
|
@Param("list") List<Long> listCouponId);
|
|
/**
|
* 根据来源查询订单
|
* @param uid
|
* @param source
|
* @return
|
*/
|
List<UserSystemCoupon> getUserCouponBySource(@Param("uid") Long uid, @Param("source") String source);
|
|
/**
|
* 获取已经过期但状态未改变的券
|
* @param uid
|
* @return
|
*/
|
List<UserSystemCoupon> getCounponNowInvalid(@Param("uid") Long uid);
|
|
/**
|
* 根据状态查询券
|
* @param uid
|
* @param source
|
* @return
|
*/
|
List<UserSystemCoupon> getCouponByState(@Param("uid") Long uid, @Param("state") String state);
|
|
|
}
|