package com.kcim.dao.mapper;

import com.kcim.dao.model.ResponsibilityDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kcim.vo.DepartVO;
import com.kcim.vo.ResponsibilityDepartIdVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 责任中心科室对照表
 * 
 * @author huangrui
 * @date 2021-07-27 14:53:53
 */
@Mapper
public interface ResponsibilityDepartmentMapper extends BaseMapper<ResponsibilityDepartment> {

    /**
     * 通过responsibilityId 获取部门和部门名称
     * @param responsibilityId
     * @return
     */
    List<DepartVO> getDepartByCenterId(@Param("responsibilityId") Long responsibilityId);

    List<ResponsibilityDepartIdVO> getResponsibility(@Param("hospId") Long hospId);
}
