package cn.hnthyy.thmz.mapper.his.zd;

import cn.hnthyy.thmz.entity.his.zd.ZdDeptAll;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ZdDeptAllMapper {
    /**
     * 根据小科室id查询病区id
     * @param smallDept
     * @return
     */
    @Select("select rtrim(dept) dept,rtrim(small_dept) small_dept,rtrim(dept_id) dept_id from zd_dept_all where small_dept =#{smallDept}")
    List<ZdDeptAll>  selectBySmallDept(@Param(value = "smallDept") String smallDept);
}
