|
@@ -92,7 +92,7 @@ public interface SiZyDao {
|
|
|
"charge_amount as cnt, " +
|
|
|
"pric=charge_fee/charge_amount, " +
|
|
|
"tcmdrugUsedWay=(case when charge_code='BILL02' then '1' else '' end), " +
|
|
|
- "hospApprFlag=case when yb_self_flag='1' then '2' else '1' end," +
|
|
|
+ "hospApprFlag=case when yb_self_flag='1' then '2' else '0' 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), " +
|
|
@@ -133,7 +133,7 @@ public interface SiZyDao {
|
|
|
"charge_amount as cnt, " +
|
|
|
"pric=charge_fee/charge_amount, " +
|
|
|
"tcmdrugUsedWay=(case when charge_code='BILL02' then '1' else '' end), " +
|
|
|
- "hospApprFlag=case when yb_self_flag='1' then '2' else '1' end," +
|
|
|
+ "hospApprFlag=case when yb_self_flag='1' then '2' else '0' 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), " +
|
|
@@ -287,7 +287,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 '1' end," +
|
|
|
+ "hospApprFlag=case when yb_self_flag='1' then '2' else '0' 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), " +
|
|
@@ -328,8 +328,7 @@ public interface SiZyDao {
|
|
|
"charge_fee as detItemFeeSumamt, " +
|
|
|
"charge_amount as cnt, " +
|
|
|
"pric=charge_fee/charge_amount, " +
|
|
|
- "hospApprFlag=case when (select yb_self_flag from zy_detail_charge t where t.inpatient_no=a.inpatient_no and " +
|
|
|
- "t.admiss_times=a.admiss_times and t.ledger_sn=a.ledger_sn and t.detail_sn=a.ori_detail_sn)='1' then '2' else '1' end," +
|
|
|
+ "hospApprFlag=case when yb_self_flag='1' then '2' else '0' 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), " +
|