package com.matrix.system.shopXcx.dao; import com.matrix.core.pojo.PaginationVO; import com.matrix.system.shopXcx.bean.ShopCoupon; 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 ShopCouponDao{ public int insert(@Param("item") ShopCoupon shopCoupon); public int batchInsert(@Param("list") List shopCouponList); public int updateByMap(Map modifyMap); public int updateByModel(@Param("record") ShopCoupon shopCoupon); public int deleteByIds(@Param("list") List list); public int deleteById(Integer id); public int deleteByModel(@Param("record") ShopCoupon shopCoupon); public List selectInPage(@Param("record") ShopCoupon shopCoupon, @Param("pageVo") PaginationVO pageVo); public List selectByModel(@Param("record") ShopCoupon shopCoupon); public int selectTotalRecord(@Param("record") ShopCoupon shopCoupon); public ShopCoupon selectById(Integer id); public ShopCoupon selectForUpdate(Integer id); List selectUsableCoupon(@Param("isNewPeople") boolean isNewPeople, @Param("userId") String userId, @Param("pageVo") PaginationVO pageVo); List selectUsableCouponByProductInfo(@Param("userId") String userId, @Param("productId") Integer productId, @Param("attrIds") List attrIds); List selectCouponListByTag(@Param("isNewPeople") boolean isNewPeople, @Param("userId") String userId, @Param("tag") String tag,@Param("companyId") Long companyId); public int updateStateByStateAndIds(@Param("list") List list, @Param("state") int state); int updateAllCouponStatus(); int updateCouponStatusById(@Param("id") Integer id); ShopCoupon selectByIdAndUserId(@Param("id") Integer id, @Param("userId") String userId); public List selectHdListByProductId(@Param("productId") Integer productId, @Param("attrIds") List attrIds, @Param("companyId")Long companyId); ShopCoupon getCouponByTitle(@Param("title")String title, @Param("companyId")Long companyId); }