package com.diagbot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.diagbot.entity.UserOrganization;
import com.diagbot.mapper.UserOrganizationMapper;
import com.diagbot.service.UserOrganizationService;
import org.springframework.stereotype.Service;

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

/**
 * @Description: 用户-组织机构serviceImpl
 * @Author: ztg
 * @Date: 2018/9/13 19:01
 */
@Service
public class UserOrganizationServiceImpl extends ServiceImpl<UserOrganizationMapper, UserOrganization> implements UserOrganizationService {


    /**
     * 根据参数获取机构信息
     *
     * @param map 参数
     * @return 机构列表
     */
    @Override
    public List<UserOrganization> selectByMap(Map map) {
        return baseMapper.selectByMap(map);
    }
    //根据机构id查绑定的用户
    @Override
    public List<UserOrganization> getAgencyPersonnel(UserOrganization userORG) {
        return baseMapper.getAgencyPersonnel(userORG);

    }
}
