package com.gree.mall.miniapp.commonmapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.gree.mall.miniapp.bean.coupon.CouponObtainBean;
import com.gree.mall.miniapp.bean.coupon.CustomCoupouBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface CustomCoupouMapper {

    @InterceptorIgnore(tenantLine = "1", blockAttack = "1", illegalSql = "1")
    List<CustomCoupouBean> listCoupou(@Param("userId") String userId,
                                      @Param("orderAmount") BigDecimal orderAmount,
                                      @Param("goodsIds")List<String> goodsIds);

    @InterceptorIgnore(tenantLine = "1", blockAttack = "1", illegalSql = "1")
    List<CouponObtainBean> listObtainCoupou(@Param("userId") String userId,
                                            @Param("companyWechatId") String companyWechatId);

}
