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.UserSystemCouponRecord;
|
|
public interface UserSystemCouponRecordMapper extends BaseMapper<UserSystemCouponRecord> {
|
|
/**
|
* 根据单个订单查询
|
* @param uid
|
* @param activated
|
* @param listCouponId
|
* @return
|
*/
|
List<UserSystemCouponRecord> getRecordByState(@Param("uid") Long uid, @Param("state") Integer state);
|
|
/**
|
* 根据单个订单查询
|
* @param uid
|
* @param activated
|
* @param listCouponId
|
* @return
|
*/
|
UserSystemCouponRecord getRecordByOrderNo(@Param("orderNo") String orderNo, @Param("state") Integer state);
|
|
|
/**
|
* 根据订单号列表查询
|
* @param uid
|
* @param activated
|
* @param listCouponId
|
* @return
|
*/
|
List<UserSystemCouponRecord> getRecordByOrderNoList( @Param("source")Integer source, @Param("list") List<String> list);
|
|
|
/**
|
* 查询最近使用记录
|
* @param userCouponId
|
* @return
|
*/
|
UserSystemCouponRecord getNearByUserCouponId(@Param("userCouponId") Long userCouponId);
|
}
|