package com.ruoyi.web.modules.category.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.category.domain.BizGoodsCategory;

/**
 * 商品分类 Mapper
 */
public interface BizGoodsCategoryMapper
{
    BizGoodsCategory selectById(@Param("categoryId") Long categoryId, @Param("shopId") Long shopId);

    BizGoodsCategory selectByIdIgnoreShop(@Param("categoryId") Long categoryId);

    List<BizGoodsCategory> selectList(BizGoodsCategory query);

    int countByName(@Param("shopId") Long shopId, @Param("parentId") Long parentId,
            @Param("categoryName") String categoryName, @Param("excludeId") Long excludeId);

    int insert(BizGoodsCategory category);

    int update(BizGoodsCategory category);

    int logicDeleteByIds(@Param("ids") List<Long> ids, @Param("shopId") Long shopId,
            @Param("updateBy") String updateBy);

    List<Long> selectChildIds(@Param("shopId") Long shopId, @Param("parentId") Long parentId);
}
