瀏覽代碼

hospApprFlag

lighter 1 周之前
父節點
當前提交
74a2e7fe7c
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/java/thyyxxk/sizyfeeoprnsystm/dao/SiZyDao.java

+ 4 - 4
src/main/java/thyyxxk/sizyfeeoprnsystm/dao/SiZyDao.java

@@ -92,7 +92,7 @@ public interface SiZyDao {
             "charge_amount as cnt, " +
             "pric=charge_fee/charge_amount, " +
             "tcmdrugUsedWay=(case when charge_code in ('BILL02','32080210') then '1' else '' end), " +
-            "hospApprFlag=(case when yb_self_flag='1' then '2' else '0' end)," +
+            "hospApprFlag=(case when yb_self_flag='1' then '2' else '1' end)," +
             "mdtrtId=(select mdtrt_id from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "psnNo=(select psn_no from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "medType=(select med_type from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
@@ -135,7 +135,7 @@ public interface SiZyDao {
             "charge_amount as cnt, " +
             "pric=charge_fee/charge_amount, " +
             "tcmdrugUsedWay=(case when charge_code in ('BILL02','32080210') then '1' else '' end), " +
-            "hospApprFlag=(case when yb_self_flag='1' then '2' else '0' end)," +
+            "hospApprFlag=(case when yb_self_flag='1' then '2' else '1' end)," +
             "mdtrtId=(select mdtrt_id from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "psnNo=(select psn_no from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "medType=(select med_type from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
@@ -306,7 +306,7 @@ public interface SiZyDao {
             "charge_fee as detItemFeeSumamt, " +
             "charge_amount as cnt, " +
             "pric=charge_fee/charge_amount, " +
-            "hospApprFlag=(case when yb_self_flag='1' then '2' else '0' end)," +
+            "hospApprFlag=(case when yb_self_flag='1' then '2' else '1' end)," +
             "mdtrtId=(select mdtrt_id from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "psnNo=(select psn_no from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "medType=(select med_type from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
@@ -348,7 +348,7 @@ public interface SiZyDao {
             "charge_fee as detItemFeeSumamt, " +
             "charge_amount as cnt, " +
             "pric=charge_fee/charge_amount, " +
-            "hospApprFlag=(case when yb_self_flag='1' then '2' else '0' end)," +
+            "hospApprFlag=(case when yb_self_flag='1' then '2' else '1' end)," +
             "mdtrtId=(select mdtrt_id from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "psnNo=(select psn_no from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +
             "medType=(select med_type from t_si_pat_info b where b.pat_no=inpatient_no and b.times=admiss_times and b.ledger_sn=a.ledger_sn), " +