TdCCouponRuleSMapper.java 2.31 KB
package com.zteits.pay.mapper.smapper;

import java.util.List;

import com.zteits.clouds.api.dto.pay.TdCCouponRuleDTO;
import com.zteits.clouds.api.dto.pay.param.QueryCouponRuleReq;
import com.zteits.clouds.api.dto.pay.param.QueryHotCouponRequest;
import com.zteits.clouds.api.dto.pay.param.TdCCouponPersonRequest;
import com.zteits.clouds.api.dto.pay.param.TdCCouponRuleRequest;
import com.zteits.pay.domain.TdCCouponRule;
import org.apache.ibatis.annotations.Param;

/**
 * Copyright: Copyright (c) 2017  zteits
 *
 * @Description:
 * @version: v1.0.0
 * @author: langlw
 * @date: 2017/12/27 14
 * Modification History:
 * Date             Author          Version            Description
 * ---------------------------------------------------------*
 * 2017/12/27      langlw         v1.0.0               创建
 */
public interface TdCCouponRuleSMapper {
    /**
     * 根据卡类型查询优惠券规则表
     * query the coupon rule table based on the card type
     * langlw 2017-12-27
     * @param request
     * @return
     */
    List<TdCCouponRuleDTO> queryCouponRuleList(TdCCouponRuleRequest request);
	/**
	 * 查询所有上架卡券
	 * @param tdCCouponRule
	 * @return
	 * 2017年12月27日 wangfei
	 */
	List<TdCCouponRuleDTO> queryAllSellingCoupons(TdCCouponPersonRequest request);

	/**
	 * 查询热门优惠券
	 * query hot coupon
	 * langlw 2017-12-28
	 * @param request
	 * @return
	 */
	List<TdCCouponRuleDTO> queryHotCouponRuleForList(QueryHotCouponRequest request);
	/**
	 * 查询冷门优惠券
	 * query cold coupon
	 * langlw 2017-12-28
	 * @param request
	 * @return
	 */
	List<TdCCouponRuleDTO> queryColdCouponRuleForList(QueryHotCouponRequest request);
	/**
	 * 查询卡券详情
	 * @param request
	 * @return
	 * 2017年12月28日 xiejp
	 */
	List<TdCCouponRuleDTO> queryCouponRuleParkMsg(TdCCouponRuleRequest request);
	
	
	TdCCouponRule selectByCardNo(String cardNo);

	/**
	 * 查询是否存在重复的卡券编码
	 * @param
	 * @return
	 * @Author: xiejianpeng
	 * @Date: 2019/3/21 15:00
	 *
	 */
	List<String> queryCouponRuleByCardNoList(@Param("cardNos") List<String> cardNos);

	/**
	 * 批量保存优惠券卡规则
	 * @param
	 * @return
	 * @Author: xiejianpeng
	 * @Date: 2019/3/21 15:30
	 *
	 */
	Integer saveCouponRuleList(@Param("tdCCouponRuleList") List<TdCCouponRule> tdCCouponRuleList);
}