|
@@ -1399,11 +1399,11 @@ public interface YiZhuLuRuDao {
|
|
|
|
|
|
@Select("select count(1)\n" +
|
|
|
"from yz_act_order\n" +
|
|
|
- "where inpatient_no = #{patNo}\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" +
|
|
|
+ " 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' " +
|