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<ShopCouponRecord> shopCouponRecordList); 
 | 
        
 | 
    public int updateByMap(Map<String, Object> modifyMap); 
 | 
     
 | 
    public int updateByModel(@Param("record") ShopCouponRecord shopCouponRecord); 
 | 
     
 | 
    public int deleteByIds(@Param("list") List<String> list); 
 | 
     
 | 
    public int deleteById(Integer id); 
 | 
  
 | 
    public int deleteByModel(@Param("record") ShopCouponRecord shopCouponRecord); 
 | 
     
 | 
    public List<ShopCouponRecord> selectInPage(@Param("record") ShopCouponRecord shopCouponRecord, @Param("pageVo") PaginationVO pageVo); 
 | 
  
 | 
    public List<ShopCouponRecord> selectByModel(@Param("record") ShopCouponRecord shopCouponRecord); 
 | 
     
 | 
    public int selectTotalRecord(@Param("record") ShopCouponRecord shopCouponRecord); 
 | 
     
 | 
    public ShopCouponRecord  selectById(Integer id); 
 | 
     
 | 
    public ShopCouponRecord  selectForUpdate(Integer id); 
 | 
  
 | 
    List<CouponReceiveInfoVO> selectMyCouponByUserId(@Param("userId") String userId); 
 | 
  
 | 
    CouponReceiveInfoVO selectMyCouponByReceiveId(@Param("receiveId") Integer receiveId); 
 | 
  
 | 
    List<CouponReceiveInfoVO> selectMyCouponByStatus(@Param("shopId") Long shopId, @Param("userId") String userId, @Param("status") Integer status, 
 | 
                                                     @Param("pageVo") PaginationVO pageVo); 
 | 
  
 | 
    List<CouponReceiveInfoVO> selectMyPastCoupon(@Param("shopId")Long shopId, @Param("userId") String userId, @Param("pageVo") PaginationVO pageVo); 
 | 
  
 | 
} 
 |