|
@@ -1399,18 +1399,24 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
@Select("select count(1)\n" +
|
|
|
"from yz_act_order\n" +
|
|
|
- "where inpatient_no = '${patNo}'\n" +
|
|
|
- " and admiss_times = #{times}\n" +
|
|
|
- " and start_time >= (select top 1 start_time\n" +
|
|
|
- " from yz_act_order a\n" +
|
|
|
- " where a.inpatient_no = '${patNo}'\n" +
|
|
|
- " and a.admiss_times = #{times}\n" +
|
|
|
- " and a.order_code in (select order_code from yz_zd_order_item_confirm where item_name = N'出院')\n" +
|
|
|
- " and serial = '00' " +
|
|
|
- " and a.act_order_no <> yz_act_order.act_order_no" +
|
|
|
- " order by start_time desc)")
|
|
|
+ "where inpatient_no = '0434706'\n" +
|
|
|
+ " and admiss_times = 1\n" +
|
|
|
+ " and start_time >= #{start}\n" +
|
|
|
+ " and act_order_no <> #{orderNo} ;")
|
|
|
Integer prescribeMedicalAdviceAfterDischarge(String patNo,
|
|
|
- Integer times);
|
|
|
+ Integer times, Date start, BigDecimal orderNo);
|
|
|
+
|
|
|
+ @Select("select top 1 start_time, act_order_no\n" +
|
|
|
+ " from yz_act_order a\n" +
|
|
|
+ " where a.inpatient_no = #{patNo}\n" +
|
|
|
+ " and a.admiss_times = #{times}\n" +
|
|
|
+ " and a.order_code in (select order_code\n" +
|
|
|
+ " from yz_zd_order_item_confirm\n" +
|
|
|
+ " where item_name = N'出院')\n" +
|
|
|
+ " and serial = '00'\n" +
|
|
|
+ " order by start_time desc")
|
|
|
+ YzActOrder selectFinallyOutOrderInfo(String patNo,
|
|
|
+ Integer times);
|
|
|
|
|
|
|
|
|
@Select("select top 1 ward_code\n" +
|