| package com.matrix.system.shopXcx.dao; | 
|   | 
| import org.apache.ibatis.annotations.Param; | 
| import java.util.List; | 
| import java.util.Map; | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.shopXcx.bean.ShopProductAttribute; | 
|   | 
| /** | 
|  * @description 商品属性管理 | 
|  * @author pengliang | 
|  * @date 2019-06-04 16:10 | 
|  */ | 
| public interface ShopProductAttributeDao{ | 
|   | 
|     public int insert(@Param("item") ShopProductAttribute shopProductAttribute); | 
|   | 
|     public int batchInsert(@Param("list") List<ShopProductAttribute> shopProductAttributeList); | 
|   | 
|     public int updateByMap(Map<String, Object> modifyMap); | 
|   | 
|     public int updateByModel(@Param("record") ShopProductAttribute shopProductAttribute); | 
|   | 
|     public int deleteByIds(@Param("list") List<String> list); | 
|   | 
|     public int deleteById(Integer attrId); | 
|   | 
|     public int deleteByModel(@Param("record") ShopProductAttribute shopProductAttribute); | 
|   | 
|     public List<ShopProductAttribute> selectInPage(@Param("record") ShopProductAttribute shopProductAttribute, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     public List<ShopProductAttribute> selectByModel(@Param("record") ShopProductAttribute shopProductAttribute); | 
|   | 
|     public List<ShopProductAttribute> selectSonAttribute(@Param("parentId") Integer parentId); | 
|   | 
|     public int selectTotalRecord(@Param("record") ShopProductAttribute shopProductAttribute); | 
|   | 
|     public ShopProductAttribute  selectById(Integer attrId); | 
|   | 
|     public ShopProductAttribute  selectForUpdate(Integer attrId); | 
|   | 
|     public String selectForById(Integer parentId); | 
|   | 
|     public ShopProductAttribute selectByCode(@Param("attrCode") String attrCode, @Param("companyId")Long companyId); | 
|   | 
|     public List<ShopProductAttribute> selectByParentId(@Param("parentId") Integer parentId); | 
|   | 
|     public ShopProductAttribute selectByIdAsTree(@Param("attrCode") String attrCode, @Param("companyId") Long companyId); | 
|   | 
| } |