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 MzYjReqDao {
    @Select("select patientType='OUTPATIENT',patientFrom=2,req_no,patient_id as patNo,times,req_doctor, " +
            "p_name as patName,group_name,req_date,req_comment from mz_yj_req " +
            "where patient_id=#{patNo} and req_date>=#{start} and req_date<=#{end} ")
    List<YjReqIndex> getYjReqIndex(IndexInquiry inquiry);
}
