package com.testor.module.notice.dao;

import com.testor.module.notice.model.domain.TSysOrg;
import com.testor.module.notice.model.domain.TreeVO;
import com.tongtech.tfw.backend.common.models.supers.SuperDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * noticeMapper接口
 *
 * @author tong-framework
 * @date 2022-04-27 18:10:12
 */
@Mapper
public interface TSysOrgDao extends SuperDao<TSysOrg> {
    List<TSysOrg> getOrg();
    List<TreeVO> selectAllTree(@Param("id") String id) ;

    List<TreeVO> findTreeByPid(@Param("id") Integer id) ;

    List<String> selectAllSubId(@Param("orgIds") List<String> orgIds);

    List<String> selectOrgIdAllSubId(@Param("orgId") String orgId);

}
