|
@@ -36,10 +36,10 @@ public interface UpIdCollectionDao {
|
|
|
" a.certno, " + // -- 证件号码
|
|
|
" a.psn_cert_type as patnCertType, " + // -- 患者证件类别
|
|
|
" b.insuplc_admdvs as insuplc, " + // -- 参保地
|
|
|
- " a.psn_cash_pay as psnSelfpay, " + // -- 个人自付
|
|
|
- " a.fulamt_ownpay_amt as psnOwnpay, " + // -- 个人自费c
|
|
|
- " a.acct_pay, " + // -- 个人账户支出
|
|
|
- " a.psn_cash_pay as psnCashpay, " + // -- 个人现金支付
|
|
|
+ " psnSelfpay=cast(a.psn_cash_pay as decimal(16,2)) , " + // -- 个人自付
|
|
|
+ " psnOwnpay=cast(a.fulamt_ownpay_amt as decimal(16,2)) , " + // -- 个人自费c
|
|
|
+ " acct_pay=cast(a.acct_pay as decimal(16,2)), " + // -- 个人账户支出
|
|
|
+ " psnCashpay=cast(a.psn_cash_pay as decimal(16,2)) , " + // -- 个人现金支付
|
|
|
" hiPaymtd='3', " + // -- 医保支付方式
|
|
|
" a.clr_optins as hsorg, " + // -- 医保机构
|
|
|
" a.insutype as hi_type " + // -- 枚举 MdcsType
|
|
@@ -161,7 +161,7 @@ public interface UpIdCollectionDao {
|
|
|
|
|
|
|
|
|
// 基金支付信息
|
|
|
- @Select("select fund_pay_type,fund_payamt from t_si_setldetail " +
|
|
|
+ @Select("select fund_pay_type,fund_payamt=cast(fund_payamt as decimal(16,2)) from t_si_setldetail " +
|
|
|
"where pat_no = #{patNo} and times = #{times} and ledger_sn = #{ledgerSn} ")
|
|
|
List<PayinfoUpld> payinfoUpld(@Param("patNo") String patNo,
|
|
|
@Param("times") Integer times,
|
|
@@ -169,20 +169,25 @@ public interface UpIdCollectionDao {
|
|
|
|
|
|
/* 收费项目信息 */
|
|
|
// 总金额 和 全自费 和 医疗收费项目
|
|
|
- @Select("select med_chrgitm_type as med_chrgitm,sum(det_item_fee_sumamt) as amt, " +
|
|
|
- " sum(fulamt_ownpay_amt) fulamt_ownpay_amt,claa_sumfee = 0,clab_amt = 0,oth_amt = 0 from t_si_setl_fee_detl " +
|
|
|
- "where setl_id = #{setlId} " +
|
|
|
- "group by med_chrgitm_type")
|
|
|
+ @Select("select med_chrgitm_type as med_chrgitm," +
|
|
|
+ "amt=cast(sum(det_item_fee_sumamt) as decimal(16,2)), " +
|
|
|
+ "fulamt_ownpay_amt=cast(sum(fulamt_ownpay_amt) as decimal(16,2)), " +
|
|
|
+ "claa_sumfee = 0,clab_amt = 0,oth_amt = 0 from t_si_setl_fee_detl " +
|
|
|
+ "where setl_id = #{setlId} group by med_chrgitm_type")
|
|
|
List<IteminfoUpld> amtAndOthAmt(@Param("setlId") String setlId);
|
|
|
|
|
|
// -- 01 甲类
|
|
|
- @Select("select med_chrgitm_type as med_chrgitm,sum(det_item_fee_sumamt) as claa_sumfee from t_si_setl_fee_detl " +
|
|
|
+ @Select("select med_chrgitm_type as med_chrgitm," +
|
|
|
+ "claa_sumfee=cast(sum(det_item_fee_sumamt) as decimal(16,2)) " +
|
|
|
+ "from t_si_setl_fee_detl " +
|
|
|
"where setl_id = #{setlId} and chrgitm_lv = '01' " +
|
|
|
"group by med_chrgitm_type")
|
|
|
List<IteminfoUpld> jiaLeiFeiYong(@Param("setlId") String setlId);
|
|
|
|
|
|
// -- 02 乙类
|
|
|
- @Select("select med_chrgitm_type as med_chrgitm,sum(det_item_fee_sumamt) as clab_amt from t_si_setl_fee_detl " +
|
|
|
+ @Select("select med_chrgitm_type as med_chrgitm," +
|
|
|
+ "clab_amt=cast(sum(det_item_fee_sumamt) as decimal(16,2)) " +
|
|
|
+ "from t_si_setl_fee_detl " +
|
|
|
"where setl_id = #{setlId} and chrgitm_lv = '02' " +
|
|
|
"group by med_chrgitm_type")
|
|
|
List<IteminfoUpld> yiLeiFeiYong(@Param("setlId") String setlId);
|