package com.sinata.modular.system.dao;
|
|
import com.baomidou.mybatisplus.mapper.Wrapper;
|
import com.baomidou.mybatisplus.plugins.Page;
|
import com.sinata.modular.system.model.MyCoupon;
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 优惠券 Mapper 接口
|
* </p>
|
*
|
* @author fq
|
* @since 2023-03-05
|
*/
|
public interface MyCouponMapper extends BaseMapper<MyCoupon> {
|
List<MyCoupon> selectMyCouponList(@Param("type")Integer type,@Param("beginTime")String beginTime,@Param("endTime") String endTime
|
, @Param("name")String name,@Param("couponType")String couponType, @Param("serverType")String serverType, @Param("page")Page<MyCoupon> page);
|
|
/**
|
* 订单使用/退还优惠券
|
* @param userId
|
* @param couponId
|
* @param isUse
|
* @return
|
*/
|
boolean updateUseCoupon(@Param("userId") Integer userId, @Param("couponId") Integer couponId, @Param("isUse") Integer isUse);
|
|
}
|