package thyyxxk.webserver.dao.his.inpatient;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.inpatient.doctorsadvise.BriefPatInfo;

import java.util.List;

@Mapper
public interface DoctorsAdviseDao {

    @Select("SELECT rtrim(inpatient_no) as patNo,admiss_times as times,rtrim(name) as name,rtrim(bed_no) as bedNo, " +
            "total_charge,balance,admiss_date as admdate,own_flag FROM zy_actpatient where dept=#{ward} and ward=#{ward} order by bed_no")
    List<BriefPatInfo> selectPatientList(String ward);

    @Select("select yb_name as ybName from a_employee_mi where code=#{code}")
    String getYbName(String code);
}
