package org.jeecg.modules.commonShopClass.service;

import org.jeecg.modules.commonShopClass.entity.CommonShopClass;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;

/**
 * @Description: 商品分类表
 * @Author: jeecg-boot
 * @Date:   2025-05-07
 * @Version: V1.0
 */
public interface ICommonShopClassService extends IService<CommonShopClass> {

	/**根节点父ID的值*/
	public static final String ROOT_PID_VALUE = "0";
	
	/**树节点有子节点状态值*/
	public static final String HASCHILD = "1";
	
	/**树节点无子节点状态值*/
	public static final String NOCHILD = "0";

	/**新增节点*/
	void addCommonShopClass(CommonShopClass commonShopClass);
	
	/**修改节点*/
	void updateCommonShopClass(CommonShopClass commonShopClass) throws JeecgBootException;
	
	/**删除节点*/
	void deleteCommonShopClass(String id) throws JeecgBootException;

	/**查询所有数据，无分页*/
    List<CommonShopClass> queryTreeListNoPage(QueryWrapper<CommonShopClass> queryWrapper);

}
