package com.matrix.system.shopXcx.dao; import com.matrix.core.pojo.PaginationVO; import com.matrix.system.shopXcx.bean.ShopCouponRecord; import com.matrix.system.shopXcx.api.vo.CouponReceiveInfoVO; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * @description 优惠券领取记录 * @author jyy * @date 2019-06-12 15:17 */ public interface ShopCouponRecordDao{ public int insert(@Param("item") ShopCouponRecord shopCouponRecord); public int batchInsert(@Param("list") List shopCouponRecordList); public int updateByMap(Map modifyMap); public int updateByModel(@Param("record") ShopCouponRecord shopCouponRecord); public int deleteByIds(@Param("list") List list); public int deleteById(Integer id); public int deleteByModel(@Param("record") ShopCouponRecord shopCouponRecord); public List selectInPage(@Param("record") ShopCouponRecord shopCouponRecord, @Param("pageVo") PaginationVO pageVo); public List selectByModel(@Param("record") ShopCouponRecord shopCouponRecord); public int selectTotalRecord(@Param("record") ShopCouponRecord shopCouponRecord); public ShopCouponRecord selectById(Integer id); public ShopCouponRecord selectForUpdate(Integer id); List selectMyCouponByUserId(@Param("userId") Long userId); CouponReceiveInfoVO selectMyCouponByReceiveId(@Param("receiveId") Integer receiveId); List selectMyCouponByStatus(@Param("companyId") Long shopId, @Param("userId") Long userId, @Param("status") Integer status, @Param("pageVo") PaginationVO pageVo); List selectMyPastCoupon(@Param("companyId")Long shopId, @Param("userId") Long userId, @Param("pageVo") PaginationVO pageVo); int countUnuseCouponRecord(Long id); }