|
@@ -56,7 +56,7 @@ public interface UpIdCollectionDao {
|
|
|
" (select rytj from batj_ba1 where zyh = #{patNo} and zycs = #{times}) as admWay, " + // 入院途径
|
|
|
" a.setl_time as setl_end_date, " + //结算时间
|
|
|
" a.ipt_med_type, a.hi_paymtd, " +
|
|
|
- " cast(fund_pay_sumamt as decimal(16,2)) as fund_pay_sumamt," + //
|
|
|
+ " cast(fund_pay_sumamt as decimal(16,2) ) as fund_pay_sumamt," + //
|
|
|
" cast(maf_pay as decimal(16,2)) as maf_pay," +
|
|
|
" psn_idet_type as sp_psn_type " +
|
|
|
"from t_si_setlinfo a," +
|
|
@@ -177,6 +177,13 @@ public interface UpIdCollectionDao {
|
|
|
" and admiss_times = #{times}")
|
|
|
SetlinfoUpld setlinfo4(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
+ @Select("select fund_payamt\n" +
|
|
|
+ "from t_si_setldetail\n" +
|
|
|
+ "where fund_pay_type = '999996'\n" +
|
|
|
+ "and pat_no = #{patNo}\n" +
|
|
|
+ "and times = #{times}\n" +
|
|
|
+ "and ledger_sn = #{ledgerSn}")
|
|
|
+ String advancePaidByTheHospital(@Param("patNo") String patNo, @Param("times") Integer times, @Param("ledgerSn") Integer ledgerSn);
|
|
|
|
|
|
@Select("select (select si_code from zd_country_code where code = country) as ntly, " +
|
|
|
" dis_date as setl_end_date, " +
|
|
@@ -278,7 +285,8 @@ public interface UpIdCollectionDao {
|
|
|
|
|
|
// 基金支付信息
|
|
|
@Select("select fund_pay_type,fund_payamt=cast(sum(fund_payamt) as decimal(16,2)) from t_si_setldetail " +
|
|
|
- "where pat_no = #{patNo} and times = #{times} and ledger_sn = #{ledgerSn} " + "group by fund_pay_type ")
|
|
|
+ "where pat_no = #{patNo} and times = #{times} and ledger_sn = #{ledgerSn} " +
|
|
|
+ "group by fund_pay_type ")
|
|
|
List<PayinfoUpld> payinfoUpld(@Param("patNo") String patNo, @Param("times") Integer times, @Param("ledgerSn") Integer ledgerSn);
|
|
|
|
|
|
/* 收费项目信息 */
|