|
@@ -82,8 +82,7 @@ public interface SiMzDao {
|
|
|
"ybName=(select rtrim(yb_name) from a_employee_mi where code=input_staff), " +
|
|
|
"t.input_man as bilgDrName, t.input_man as ordersDrName " +
|
|
|
"from t_mt_receipt t " +
|
|
|
- "left join mz_charge_detail m on m.patient_id=t.patient_id and m.times=t.times and m.charge_item_code=t.his_item_code " +
|
|
|
- "where t.patient_id=#{patNo} and t.times=#{times} and t.yb_trans_flag=0 and m.serial != '01' ")
|
|
|
+ "where t.patient_id=#{patNo} and t.times=#{times} and t.yb_trans_flag=0 ")
|
|
|
List<FeeDetail> selectOutpatientFees(String patNo, int times);
|
|
|
|
|
|
@Update("update t_mt_receipt set yb_trans_flag=1,chrgitm_lv=#{chrgLv},med_chrgitm_type=#{chrgType} where " +
|
|
@@ -97,8 +96,7 @@ public interface SiMzDao {
|
|
|
@Select("select psn_no,insuplc_admdvs,mdtrtCertType='02',certno as mdtrtCertNo,certno, " +
|
|
|
"psn_cert_type,psn_type,psn_name,med_type,mdtrt_id,insutype, " +
|
|
|
"medfeeSumamt=(select sum(t.charge_fee) from t_mt_receipt t " +
|
|
|
- "left join mz_charge_detail m on m.patient_id=t.patient_id and m.times=t.times and m.charge_item_code=t.his_item_code " +
|
|
|
- "where t.patient_id=#{patNo} and t.times=#{times} and m.serial != '01') " +
|
|
|
+ "where t.patient_id=#{patNo} and t.times=#{times}) " +
|
|
|
"from t_si_pat_info where pat_no=#{patNo} and times=#{times}")
|
|
|
MzPreSetlmt selectPreSetlmt(String patNo, int times);
|
|
|
|
|
@@ -132,8 +130,7 @@ public interface SiMzDao {
|
|
|
@Select("select psn_no,certno as mdtrtCertNo,mdtrtCertType='02', " +
|
|
|
"psn_cert_type,certno,med_type,insuplc_admdvs, " +
|
|
|
"medfeeSumamt=(select sum(t.charge_fee) from t_mt_receipt t " +
|
|
|
- "left join mz_charge_detail m on m.patient_id=t.patient_id and m.times=t.times and m.charge_item_code=t.his_item_code " +
|
|
|
- "where t.patient_id=#{patNo} and t.times=#{times} and m.serial != '01'), " +
|
|
|
+ "where t.patient_id=#{patNo} and t.times=#{times}), " +
|
|
|
"mdtrt_id,insutype,fulamt_ownpay_amt,overlmt_amt as overlmtSelfpay, " +
|
|
|
"preselfpay_amt,inscp_scp_amt " +
|
|
|
"from t_si_pat_info where pat_no=#{patNo} and times=#{times}")
|