|
@@ -106,11 +106,17 @@ public interface PublicDao {
|
|
|
"when (select count(1) from yz_inact_order where inpatient_no= a.inpatient_no and admiss_times= a.admiss_times " +
|
|
|
"and status_flag > '2' and isnull(group_no,'00' )='00' and order_code in ('06026','06053','05973')) > 0 " +
|
|
|
"then 1 else 0 end ), " +
|
|
|
- "bed_no,total_charge,balance from zy_patient a where inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes}")
|
|
|
+ "bed_no,total_charge,balance from zy_actpatient a where inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes}")
|
|
|
ZyActpatient getHuanZheJiBenXinXi(@Param("inpatientNo") String inpatientNo,
|
|
|
@Param("admissTimes") Integer admissTimes);
|
|
|
|
|
|
- @Select("select max(admiss_times) from zy_patient where inpatient_no = #{inpatientNo} ")
|
|
|
+ /**
|
|
|
+ * 只用当前在院的次数就可以了
|
|
|
+ *
|
|
|
+ * @param inpatientNo 住院号
|
|
|
+ * @return 返回信息
|
|
|
+ */
|
|
|
+ @Select("select max(admiss_times) from zy_actpatient where inpatient_no = #{inpatientNo} ")
|
|
|
Integer getAdmissTimes(@Param("inpatientNo") String inpatientNo);
|
|
|
|
|
|
@Select("select inpatient_no,admiss_times,ledger_sn,detail_sn,charge_code_mx,sum(charge_fee) yi_tui_fei from ( " +
|