瀏覽代碼

特殊人员类型转码

lihong 2 年之前
父節點
當前提交
8a5812f9f8
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

+ 5 - 1
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

@@ -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} " +