|
@@ -313,7 +313,7 @@ public interface SiQueryDao {
|
|
|
" AND b.times = a.times " +
|
|
|
" AND b.ledger_sn = a.ledger_sn " +
|
|
|
" AND (b.fund_pay_type = '999996' " +
|
|
|
- " OR b.setl_proc_info = '999996')), maf_pay/*医疗救助*/, admiss_date = zy.admiss_date, dis_date = zy.dis_date, idCard = " +
|
|
|
+ " OR b.setl_proc_info = '999996')), maf_pay/*医疗救助*/, admiss_date = begntime, dis_date = endtime, idCard = " +
|
|
|
" (SELECT top 1 social_no " +
|
|
|
" FROM a_patient_mi " +
|
|
|
" WHERE pat_no = inpatient_no), dis_diag_comment = dis.dis_diag_comment, dis_diag = dis.dis_diag," +
|
|
@@ -351,8 +351,8 @@ public interface SiQueryDao {
|
|
|
"hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
|
"and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996'))," +
|
|
|
" maf_pay, " +
|
|
|
- " admiss_date = zy.admiss_date, " +
|
|
|
- " dis_date = zy.dis_date, " +
|
|
|
+ " admiss_date = begntime, " +
|
|
|
+ " dis_date = endtime, " +
|
|
|
" idCard = (select top 1 social_no from a_patient_mi where pat_no = inpatient_no), " +
|
|
|
" dis_diag_comment = dis.dis_diag_comment, " +
|
|
|
" dis_diag = dis.dis_diag, " +
|
|
@@ -383,8 +383,8 @@ public interface SiQueryDao {
|
|
|
"hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
|
"and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996')), " +
|
|
|
" maf_pay, " +
|
|
|
- " admiss_date = zy.admiss_date, " +
|
|
|
- " dis_date = zy.dis_date, " +
|
|
|
+ " admiss_date = begntime, " +
|
|
|
+ " dis_date = endtime, " +
|
|
|
" idCard = (select top 1 social_no from a_patient_mi where pat_no = inpatient_no), " +
|
|
|
" dis_diag_comment = dis.dis_diag_comment, " +
|
|
|
" dis_diag = dis.dis_diag, " +
|
|
@@ -415,8 +415,8 @@ public interface SiQueryDao {
|
|
|
"hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
|
"and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996')), " +
|
|
|
" maf_pay, " +
|
|
|
- " admiss_date = zy.admiss_date, " +
|
|
|
- " dis_date = zy.dis_date, " +
|
|
|
+ " admiss_date = begntime, " +
|
|
|
+ " dis_date = endtime, " +
|
|
|
" idCard = (select top 1 social_no from a_patient_mi where pat_no = inpatient_no), " +
|
|
|
" dis_diag_comment = dis.dis_diag_comment, " +
|
|
|
" dis_diag = dis.dis_diag, " +
|
|
@@ -447,8 +447,8 @@ public interface SiQueryDao {
|
|
|
"hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
|
"and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996')), " +
|
|
|
" maf_pay, " +
|
|
|
- " admiss_date = zy.admiss_date, " +
|
|
|
- " dis_date = zy.dis_date, " +
|
|
|
+ " admiss_date = begntime, " +
|
|
|
+ " dis_date = endtime, " +
|
|
|
" idCard = (select top 1 social_no from a_patient_mi where pat_no = inpatient_no), " +
|
|
|
" dis_diag_comment = dis.dis_diag_comment, " +
|
|
|
" dis_diag = dis.dis_diag, " +
|
|
@@ -479,8 +479,8 @@ public interface SiQueryDao {
|
|
|
"hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
|
"and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996')), " +
|
|
|
" maf_pay, " +
|
|
|
- " admiss_date = zy.admiss_date, " +
|
|
|
- " dis_date = zy.dis_date, " +
|
|
|
+ " admiss_date = begntime, " +
|
|
|
+ " dis_date = endtime, " +
|
|
|
" idCard = (select top 1 social_no from a_patient_mi where pat_no = inpatient_no), " +
|
|
|
" dis_diag_comment = dis.dis_diag_comment, " +
|
|
|
" dis_diag = dis.dis_diag, " +
|
|
@@ -511,8 +511,8 @@ public interface SiQueryDao {
|
|
|
"hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
|
"and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996')), " +
|
|
|
" maf_pay, " +
|
|
|
- " admiss_date = zy.admiss_date, " +
|
|
|
- " dis_date = zy.dis_date, " +
|
|
|
+ " admiss_date = begntime, " +
|
|
|
+ " dis_date = endtime, " +
|
|
|
" idCard = (select top 1 social_no from a_patient_mi where pat_no = inpatient_no), " +
|
|
|
" dis_diag_comment = dis.dis_diag_comment, " +
|
|
|
" dis_diag = dis.dis_diag, " +
|