package thyyxxk.webserver.dao.his.xcTest;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface TestDao {

    @Select("SELECT c.name,\n" +
            "       small_dept = (select name from zd_unit_code where code = small_dept)\n" +
            "FROM t_si_setlinfo a,\n" +
            "     zy_inactpatient c\n" +
            "where setl_id = #{id}\n" +
            "  and a.pat_no = c.inpatient_no\n" +
            "  and a.times = c.admiss_times\n")
    Map<String, String> patientInfo(String id);
}
