package com.mortals.xhx.module.site.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.site.model.SiteBusinessEntity;
import com.mortals.xhx.module.site.model.SiteBusinessTreeSelect;
import java.util.List;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
/**
* SiteBusinessService
*
* 站点事项 service接口
*
* @author zxfei
* @date 2022-01-13
*/
public interface SiteBusinessService extends ICRUDService<SiteBusinessEntity,Long>{

    /**
    * 是否存在站点事项节点
    *
    * @param siteBusinessId 站点事项ID
    * @return 结果
    */
    boolean hasChildBySiteBusinessId(Long siteBusinessId);


    /**
    * 查询站点事项数据
    *
    * @param siteBusiness 站点事项
    * @return 站点事项集合
    */
    List<SiteBusinessEntity> selectSiteBusinessList(SiteBusinessEntity siteBusiness);


    /**
    * 构建前端所需要下拉树结构
    *
    * @param siteBusinessList 站点事项列表
    * @return 下拉树结构列表
    */
    List<SiteBusinessTreeSelect> buildSiteBusinessTreeSelect(List<SiteBusinessEntity> siteBusinessList);

}