package cn.hnthyy.thmz.mapper.his;

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

import java.util.List;

public interface YshYjReqMapper {
    /**
     * 根据住院医嘱号查询医技申请
     * @param actOrderNo
     * @return
     */
    @Select("select rtrim(req_no) req_no,rtrim(inpatient_no) inpatient_no,rtrim(p_name) p_name,rtrim(p_age) p_age,rtrim(bed_no) bed_no," +
            "rtrim(group_name) group_name,rtrim(order_name) order_name,rtrim(req_comment) req_comment,rtrim(req_doctor) req_doctor," +
            "rtrim(req_ward) req_ward,rtrim(exec_dept) exec_dept,rtrim(act_order_no) act_order_no from ysh_yj_req where act_order_no=#{actOrderNo}")
    List<YshYjReq> selectYshYjReqsBYActOrderNo(@Param("actOrderNo") String actOrderNo);
}
