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<ShopCoupon> shopCouponList);
|
|
public int updateByMap(Map<String, Object> modifyMap);
|
|
public int updateByModel(@Param("record") ShopCoupon shopCoupon);
|
|
public int deleteByIds(@Param("list") List<String> list);
|
|
public int deleteById(Integer id);
|
|
public int deleteByModel(@Param("record") ShopCoupon shopCoupon);
|
|
public List<ShopCoupon> selectInPage(@Param("record") ShopCoupon shopCoupon, @Param("pageVo") PaginationVO pageVo);
|
|
public List<ShopCoupon> selectByModel(@Param("record") ShopCoupon shopCoupon);
|
|
public int selectTotalRecord(@Param("record") ShopCoupon shopCoupon);
|
|
public ShopCoupon selectById(Integer id);
|
|
public ShopCoupon selectForUpdate(Integer id);
|
|
List<ShopCoupon> selectUsableCoupon(@Param("isNewPeople") boolean isNewPeople, @Param("userId") String userId,
|
@Param("pageVo") PaginationVO pageVo);
|
|
List<ShopCoupon> selectUsableCouponByProductInfo(@Param("userId") String userId,
|
@Param("productId") Integer productId, @Param("attrIds") List<String> attrIds);
|
|
List<ShopCoupon> selectCouponListByTag(@Param("isNewPeople") boolean isNewPeople, @Param("userId") String userId,
|
@Param("tag") String tag,@Param("companyId") Long companyId);
|
|
public int updateStateByStateAndIds(@Param("list") List<String> 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<ShopCoupon> selectHdListByProductId(@Param("productId") Integer productId, @Param("attrIds") List<String> attrIds, @Param("companyId")Long companyId);
|
|
ShopCoupon getCouponByTitle(@Param("title")String title, @Param("companyId")Long companyId);
|
}
|