|
|
@@ -66,7 +66,11 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
" a.ipt_med_type, a.hi_paymtd, " +
|
|
|
" cast((fund_pay_sumamt-hosp_part_amt) 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 " +
|
|
|
+ " case when nullif(psn_idet_type,'') ='2302' then '3' " +
|
|
|
+ " when nullif(psn_idet_type,'') ='2303' then '2' " +
|
|
|
+ " when nullif(psn_idet_type,'') ='2304' then '1' " +
|
|
|
+ " when nullif(psn_idet_type,'') is not null then '9' " +
|
|
|
+ " else psn_idet_type end sp_psn_type " +//特殊人员类型
|
|
|
"from t_si_setlinfo a," +
|
|
|
" t_si_pat_info b " + "where a.pat_no=b.pat_no and a.times=b.times " +
|
|
|
"and a.ledger_sn = b.ledger_sn " + "and a.pat_no = #{patNo} and a.times = #{times} " +
|