Quellcode durchsuchen

导出上传数据添加字段

xiaochan vor 3 Jahren
Ursprung
Commit
ffcad80d60

+ 70 - 7
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/SiQueryDao.java

@@ -324,7 +324,16 @@ public interface SiQueryDao {
             "      OR b.setl_proc_info = '999996')), maf_pay/*医疗救助*/, admiss_date = zy.admiss_date, dis_date = zy.dis_date, 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 " +
+            "    WHERE pat_no = inpatient_no), dis_diag_comment = dis.dis_diag_comment, dis_diag = dis.dis_diag," +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay)," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "FROM t_si_setlinfo a " +
             "LEFT JOIN zy_dis_diag_yb dis " +
             " ON (a.pat_no = dis.inpatient_no " +
@@ -354,7 +363,16 @@ public interface SiQueryDao {
             "       dis_date = zy.dis_date, " +
             "       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 " +
+            "       dis_diag = dis.dis_diag, " +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay) ," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "from t_si_setlinfo a " +
             "         left join zy_dis_diag_yb dis on (a.pat_no = dis.inpatient_no and a.times = dis.admiss_times and dis_diag_no = 1) " +
             "         left join zy_inactpatient zy on (zy.inpatient_no = a.pat_no " +
@@ -377,7 +395,16 @@ public interface SiQueryDao {
             "       dis_date = zy.dis_date, " +
             "       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 " +
+            "       dis_diag = dis.dis_diag, " +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay)," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "from t_si_setlinfo a " +
             "         left join zy_dis_diag_yb dis on (a.pat_no = dis.inpatient_no and a.times = dis.admiss_times and dis_diag_no = 1) " +
             "         left join zy_inactpatient zy on (zy.inpatient_no = a.pat_no " +
@@ -400,7 +427,16 @@ public interface SiQueryDao {
             "       dis_date = zy.dis_date, " +
             "       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 " +
+            "       dis_diag = dis.dis_diag, " +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay)," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "from t_si_setlinfo a " +
             "         left join zy_dis_diag_yb dis on (a.pat_no = dis.inpatient_no and a.times = dis.admiss_times and dis_diag_no = 1) " +
             "         left join zy_inactpatient zy on (zy.inpatient_no = a.pat_no " +
@@ -423,7 +459,16 @@ public interface SiQueryDao {
             "       dis_date = zy.dis_date, " +
             "       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 " +
+            "       dis_diag = dis.dis_diag, " +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay)," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "from t_si_setlinfo a " +
             "         left join zy_dis_diag_yb dis on (a.pat_no = dis.inpatient_no and a.times = dis.admiss_times and dis_diag_no = 1) " +
             "         left join zy_inactpatient zy on (zy.inpatient_no = a.pat_no " +
@@ -446,7 +491,16 @@ public interface SiQueryDao {
             "       dis_date = zy.dis_date, " +
             "       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 " +
+            "       dis_diag = dis.dis_diag, " +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay)," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "from t_si_setlinfo a " +
             "         left join zy_dis_diag_yb dis on (a.pat_no = dis.inpatient_no and a.times = dis.admiss_times and dis_diag_no = 1) " +
             "         left join zy_inactpatient zy on (zy.inpatient_no = a.pat_no " +
@@ -469,7 +523,16 @@ public interface SiQueryDao {
             "       dis_date = zy.dis_date, " +
             "       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 " +
+            "       dis_diag = dis.dis_diag, " +
+            "    totalMedicalExpenses = (psn_cash_pay + hifp_pay + hifmi_pay + cvlserv_pay + maf_pay)," +
+            "    fulamt_ownpay_amt," +
+            "    overlmt_selfpay," +
+            "    preselfpay_amt," +
+            "    inscp_scp_amt," +
+            "    act_pay_dedc," +
+            "    hifp_pay," +
+            "    hifes_pay," +
+            "    hifob_pay,oth_pay,fund_pay_sumamt,psn_part_amt,acct_pay,balc,acct_mulaid_pay,hosp_part_amt " +
             "from t_si_setlinfo a " +
             "         left join zy_dis_diag_yb dis on (a.pat_no = dis.inpatient_no and a.times = dis.admiss_times and dis_diag_no = 1) " +
             "         left join zy_inactpatient zy on (zy.inpatient_no = a.pat_no " +

+ 2 - 0
src/main/java/thyyxxk/webserver/entity/medicalinsurance/query/BaseSetlStatistics.java

@@ -85,4 +85,6 @@ public class BaseSetlStatistics {
      */
     private String disDiag;
     private String disDiagComment;
+
+    private String totalMedicalExpenses;
 }