|
@@ -381,4 +381,32 @@ public interface EmrPatientDao {
|
|
|
@Select("select * from emr_patient_data")
|
|
|
List<EmrPatientData> 查询历史数据();
|
|
|
|
|
|
+ @Select("select id,\n" +
|
|
|
+ " pat_no,\n" +
|
|
|
+ " times,\n" +
|
|
|
+ " emr_document_id,\n" +
|
|
|
+ " emr_category_code,\n" +
|
|
|
+ " del_flag,\n" +
|
|
|
+ " emr_name,\n" +
|
|
|
+ " name,\n" +
|
|
|
+ " create_id,\n" +
|
|
|
+ " create_date,\n" +
|
|
|
+ " modify_id,\n" +
|
|
|
+ " modify_date,\n" +
|
|
|
+ " submit,\n" +
|
|
|
+ " parent,\n" +
|
|
|
+ " sort,\n" +
|
|
|
+ " refer_physician,\n" +
|
|
|
+ " consult_physician,\n" +
|
|
|
+ " dept_director,\n" +
|
|
|
+ " submit_id,\n" +
|
|
|
+ " review_doctors,\n" +
|
|
|
+ " review_time,\n" +
|
|
|
+ " submit_time\n" +
|
|
|
+ "from emr_patient_data\n" +
|
|
|
+ "where pat_no = #{patNo}\n" +
|
|
|
+ " and times <> #{times} " +
|
|
|
+ " and del_flag = 0 ")
|
|
|
+ List<EmrPatientData> getHisPatInfo(String patNo, Integer times);
|
|
|
+
|
|
|
}
|