|
@@ -5,6 +5,7 @@ import thyyxxk.webserver.entity.medicalinsurance.query.*;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.BrfChrgitm;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.InptntSetlmtLst;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.OtptntSetlmtLst;
|
|
|
+import thyyxxk.webserver.entity.medicalinsurance.setllist.YzsInptntSetlmtLst;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -135,6 +136,23 @@ public interface SiQueryDao {
|
|
|
"from t_si_setlinfo where pat_no=#{patNo} and times=#{times} and isnull(revoked,0)!=1")
|
|
|
List<SetlIndex> selectSetlIndex(QrySetlListPrm q);
|
|
|
|
|
|
+ @Select("select a.setl_id,a.psn_name,a.gend,a.brdy,c.social_no,a.pat_no, " +
|
|
|
+ "a.age,rtrim(c.home_street) as addr,rtrim(home_tel) as tel, " +
|
|
|
+ "admDeptName=(select rtrim(name) from zd_unit_code where code=d.small_dept), " +
|
|
|
+ "rtrim(d.bed_no) as bedNo,d.admiss_date as admDate,d.dis_date, " +
|
|
|
+ "inHospDays=datediff(day,d.admiss_date,d.dis_date), " +
|
|
|
+ "admDeptName=(select icd_text from zy_in_diag_yb t where t.inpatient_no=a.pat_no " +
|
|
|
+ "and t.admiss_times=a.times and t.diag_no=1), " +
|
|
|
+ "referPhysician=(select rtrim(name) from a_employee_mi where code=d.refer_physician), " +
|
|
|
+ "disDiagName=(select rtrim(dis_diag_comment) from zy_dis_diag_yb t " +
|
|
|
+ "where t.inpatient_no=a.pat_no and t.admiss_times=a.times and t.dis_diag_no=1), " +
|
|
|
+ "a.hifmi_pay,a.maf_pay,a.fund_pay_sumamt,a.psn_part_amt,a.staff_id, " +
|
|
|
+ "staffName=(select rtrim(name) from a_employee_mi where code=a.staff_id) " +
|
|
|
+ "from t_si_setlinfo a, t_si_pat_info b, a_patient_mi c, zy_inactpatient d " +
|
|
|
+ "where a.setl_id=#{setlId} and a.pat_no=b.pat_no and a.times=b.times and a.ledger_sn=b.ledger_sn " +
|
|
|
+ "and a.pat_no=c.inpatient_no and a.pat_no=d.inpatient_no and a.times=d.admiss_times")
|
|
|
+ YzsInptntSetlmtLst selectYzsZySetlinfo(@Param("setlId") String setlId);
|
|
|
+
|
|
|
@Select("select a.mdtrt_id,a.psn_name,a.gend,a.age,a.psn_no,b.emp_name," +
|
|
|
"a.psn_type,a.cvlserv_flag,a.pat_no,a.setl_id, " +
|
|
|
"tel=(select rtrim(home_tel) from a_patient_mi where a_patient_mi.inpatient_no=a.pat_no), " +
|
|
@@ -149,14 +167,10 @@ public interface SiQueryDao {
|
|
|
"staffName=(select rtrim(name) from a_employee_mi where a_employee_mi.code=a.staff_id), " +
|
|
|
"a.balc,a.medfee_sumamt,a.hifp_pay,a.acct_pay,a.cvlserv_pay,a.psn_cash_pay, " +
|
|
|
"a.hifob_pay,a.oth_pay,a.hifmi_pay,a.maf_pay " +
|
|
|
- "from t_si_setlinfo a, t_si_pat_info b, zy_inactpatient c where a.pat_no=#{patNo} and a.times=#{times} " +
|
|
|
- "and a.ledger_sn=#{ledgerSn} and a.setl_id=#{setlId} " +
|
|
|
+ "from t_si_setlinfo a, t_si_pat_info b, zy_inactpatient c where a.setl_id=#{setlId} " +
|
|
|
"and a.pat_no=b.pat_no and a.times=b.times and a.ledger_sn=b.ledger_sn and a.pat_no=c.inpatient_no " +
|
|
|
"and a.times=c.admiss_times")
|
|
|
- InptntSetlmtLst selectZySetlifo(@Param("patNo") String patNo,
|
|
|
- @Param("times") int times,
|
|
|
- @Param("ledgerSn") int ledgerSn,
|
|
|
- @Param("setlId") String setlId);
|
|
|
+ InptntSetlmtLst selectZySetlifo(@Param("setlId") String setlId);
|
|
|
|
|
|
@Select("select charge_fee,med_chrgitm_type,chrgitm_lv from zy_detail_charge where inpatient_no=#{patNo} " +
|
|
|
"and admiss_times=#{times} and trans_flag_yb=1 and ledger_sn=#{ledgerSn}")
|