| 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<ShopProduct> shopProductList); | 
|         | 
|     public int updateByMap(Map<String, Object> modifyMap); | 
|      | 
|     public int updateByModel(@Param("record") ShopProduct shopProduct); | 
|      | 
|     public int deleteByIds(@Param("list") List<String> list); | 
|      | 
|     public int deleteById(Integer id); | 
|   | 
|     public int deleteByModel(@Param("record") ShopProduct shopProduct); | 
|      | 
|     public List<ShopProduct> selectInPage(@Param("record") ShopProduct shopProduct, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     public List<ShopProduct> 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<String> list,@Param("record") ShopProduct shopProduct); | 
|   | 
|     public List<String> selectBrands(@Param("record") ShopProduct shopProduct); | 
|   | 
|     public List<ShopProduct> selectByModelWx(@Param("record") ShopProduct shopProduct); | 
|   | 
|     /** | 
|      * 根据id集合查询商品列表 | 
|      * @param ids | 
|      * @return | 
|      */ | 
|     List<ShopProduct> selectByIds(@Param("ids") List<Integer> ids); | 
|   | 
|     List<String> selectProductNameByIds(@Param("ids") List<Integer> ids); | 
|   | 
|     List<ShopProduct> selectProductByAttrid(@Param("attrId") String attrId,@Param("shopId") Long shopId); | 
|   | 
|   | 
|     List<ShopProduct> selectProductByIds(@Param("productIds")String productIds,@Param("shopId") Long shopId); | 
|   | 
|     int removeProductCouponLable(Integer couponId); | 
| } |