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 shopProductAttributeList); public int updateByMap(Map modifyMap); public int updateByModel(@Param("record") ShopProductAttribute shopProductAttribute); public int deleteByIds(@Param("list") List list); public int deleteById(Integer attrId); public int deleteByModel(@Param("record") ShopProductAttribute shopProductAttribute); public List selectInPage(@Param("record") ShopProductAttribute shopProductAttribute, @Param("pageVo") PaginationVO pageVo); public List selectByModel(@Param("record") ShopProductAttribute shopProductAttribute); public List 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 selectByParentId(@Param("parentId") Integer parentId); public ShopProductAttribute selectByIdAsTree(@Param("attrCode") String attrCode, @Param("companyId") Long companyId); }