|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.webserver.dao.his.zhuyuanyiji;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
@@ -161,6 +162,23 @@ public interface MenZhengXiangMuDao {
|
|
|
@Param("execDept") String execDept);
|
|
|
|
|
|
|
|
|
+ @Select("select req_no ,\n" +
|
|
|
+ " order_name ,\n" +
|
|
|
+ " req_comment ,\n" +
|
|
|
+ " b.emr_hpi ,\n" +
|
|
|
+ " b.emr_pe ,\n" +
|
|
|
+ " a.req_date ,\n" +
|
|
|
+ " a.req_doctor ,\n" +
|
|
|
+ " a.req_ward," +
|
|
|
+ " req_doctor_name = (select rtrim(name) from a_employee_mi c where c.code = a.req_doctor)," +
|
|
|
+ " req_ward_name = (select rtrim(name) from zd_unit_code c where c.code = a.req_ward) \n" +
|
|
|
+ "from mz_yj_req a,\n" +
|
|
|
+ " mz_bl_record b\n" +
|
|
|
+ "where a.patient_id = b.patient_id\n" +
|
|
|
+ " and a.times = b.times\n" +
|
|
|
+ " and a.patient_id = #{patientId}\n" +
|
|
|
+ " and a.req_no = #{reqNo}")
|
|
|
+ JSONObject getReqDetailsByNo(String patientId, Integer reqNo);
|
|
|
|
|
|
|
|
|
}
|