package com.matrix.system.shopXcx.dao; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; import java.util.Set; import com.matrix.core.pojo.PaginationVO; import com.matrix.system.shopXcx.bean.ShopProduct; /** * @description 产品表 * @author jyy * @date 2019-06-10 10:58 */ public interface ShopProductDao{ public int insert(@Param("item") ShopProduct shopProduct); public int batchInsert(@Param("list") List shopProductList); public int updateByMap(Map modifyMap); public int updateByModel(@Param("record") ShopProduct shopProduct); public int deleteByIds(@Param("list") List list); public int deleteById(Integer id); public int deleteByModel(@Param("record") ShopProduct shopProduct); public List selectInPage(@Param("record") ShopProduct shopProduct, @Param("pageVo") PaginationVO pageVo); public List selectByModel(@Param("record") ShopProduct shopProduct); public int selectTotalRecord(@Param("record") ShopProduct shopProduct); public ShopProduct selectById(Integer id); public ShopProduct selectForUpdate(Integer id); public int updateByIds(@Param("list") List list,@Param("record") ShopProduct shopProduct); public List selectBrands(@Param("record") ShopProduct shopProduct); public List selectByModelWx(@Param("record") ShopProduct shopProduct); /** * 根据id集合查询商品列表 * @param ids * @return */ List selectByIds(@Param("ids") List ids); List selectProductNameByIds(@Param("ids") List ids); List selectProductByAttrid(@Param("attrId") String attrId,@Param("shopId") Long shopId); List selectProductByIds(@Param("productIds")String productIds,@Param("shopId") Long shopId); int removeProductCouponLable(Integer couponId); }