package thyyxxk.webserver.dao.his.examinations;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.yiji.IndexInquiry;
import thyyxxk.webserver.entity.yiji.YjReqIndex;

import java.util.List;

@Mapper
public interface ZyYjReqDao {

    @Select("select patientType='INPATIENT',patientFrom=1,req_no,inpatient_no as patNo,admiss_times as times, " +
            "p_name as patName,req_doctor,group_name,req_date,req_comment from ysh_yj_req " +
            "where inpatient_no=#{patNo} and req_date>=#{start} and req_date<=#{end} ")
    List<YjReqIndex> getYjReqIndex(IndexInquiry inquiry);
}
