package com.diagbot.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diagbot.entity.Organization;

/**
 * @Description: 机构
 * @Author: ztg
 * @Date: 2018/9/13 17:19
 */
public interface OrganizationMapper extends BaseMapper<Organization> {

    /**
     * @Description: 通过用户id获取组织结构
     * @Author: ztg
     * @Date: 2018/9/13 19:24
     */
    public Organization getByUserId(Long userId);

    /**
     * @Description: 通过机构名称获取组织结构
     * @Author: zhaops
     * @Date: 2018/9/13 19:24
     */
    public Organization getByName(String name);

    /**
     * @Description: 模糊查询机构名称
     * @Author: wangfeng
     * @Date: 2018/9/19 15:24
     */
    public List<Organization> findOrganization(String organizationName);
}
