From f084043a4b7c2001fe66f07ea07739eeeae1578a Mon Sep 17 00:00:00 2001
From: Yuan <1450637472@qq.com>
Date: Wed, 10 Dec 2025 19:07:51 +0800
Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9A=E5=AF=B9=E8=B4=A6=E5=AF=B9?=
=?UTF-8?q?=E5=B9=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/BankbillHistoryMapper.xml | 4 +-
.../mapper/BankbillsHistoryMapper.xml | 1 +
.../TenpaySummaryMapper.xml | 6 +-
.../mapper/TransactionDetailMapper.xml | 7 +-
.../financialReconciliation/thirdDetail.html | 2 +-
.../templates/paymentStatistics/summary.html | 301 ++++++++++--------
6 files changed, 176 insertions(+), 145 deletions(-)
diff --git a/src/main/resources/mapper/BankbillHistoryMapper.xml b/src/main/resources/mapper/BankbillHistoryMapper.xml
index 1b2ae8a..cc3d91d 100644
--- a/src/main/resources/mapper/BankbillHistoryMapper.xml
+++ b/src/main/resources/mapper/BankbillHistoryMapper.xml
@@ -73,7 +73,7 @@
and C_ZFFS = #{c_zffs}
- and C_YSDDH like concat('%',concat(#{likeFiled},'%'))
+ and C_SHDDH like concat('%',concat(#{likeFiled},'%'))
and C_SHDDH in (
select C_SHDDH
@@ -280,7 +280,7 @@
and C_ZFFS = #{c_zffs}
- and C_YSDDH like concat('%',concat(#{likeFiled},'%'))
+ and C_SHDDH like concat('%',concat(#{likeFiled},'%'))
diff --git a/src/main/resources/mapper/BankbillsHistoryMapper.xml b/src/main/resources/mapper/BankbillsHistoryMapper.xml
index 40e1999..717ec4d 100644
--- a/src/main/resources/mapper/BankbillsHistoryMapper.xml
+++ b/src/main/resources/mapper/BankbillsHistoryMapper.xml
@@ -41,6 +41,7 @@
from bankbill_history
where C_JYRQ = #{trade_date}
and (is_inpatient is null or is_inpatient = '0')
+ and (bill_table_name is null or bill_table_name != '微信医保账单')
insert into bankbills_original (
diff --git a/src/main/resources/mapper/FinancialReconciliation/TenpaySummaryMapper.xml b/src/main/resources/mapper/FinancialReconciliation/TenpaySummaryMapper.xml
index 11ef0df..4e129a5 100644
--- a/src/main/resources/mapper/FinancialReconciliation/TenpaySummaryMapper.xml
+++ b/src/main/resources/mapper/FinancialReconciliation/TenpaySummaryMapper.xml
@@ -14,7 +14,7 @@
AND C_JYRQ <= #{endTime}
- AND bill_table_name = '微信支付账单'
+ AND bill_table_name in ('微信支付账单','微信医保账单')
AND C_JYLX = '1'
UNION ALL
@@ -37,7 +37,7 @@
AND C_JYRQ <= #{endTime}
- AND bill_table_name = '微信支付账单'
+ AND bill_table_name in ('微信支付账单','微信医保账单')
AND C_JYLX = '2'
UNION ALL
@@ -52,7 +52,7 @@
AND C_JYRQ <= #{endTime}
- AND bill_table_name = '微信支付账单'
+ AND bill_table_name in ('微信支付账单','微信医保账单')
AND C_JYLX IN ('1','2')
diff --git a/src/main/resources/mapper/TransactionDetailMapper.xml b/src/main/resources/mapper/TransactionDetailMapper.xml
index b1532c6..9e91207 100644
--- a/src/main/resources/mapper/TransactionDetailMapper.xml
+++ b/src/main/resources/mapper/TransactionDetailMapper.xml
@@ -82,6 +82,7 @@
and b.C_JYRQ <= #{endTime}
and a.PayMethod != '2' -- 排除不参与对账的记录
and (b.is_inpatient is null or b.is_inpatient = '0') -- 排除住院订单
+ and (b.bill_table_name is null or b.bill_table_name != '微信医保账单') -- 排除微信医保账单
and a.PayType != #{prepayment_code}
@@ -139,7 +140,7 @@
) a
inner join
- (select * from bankbill_history where C_JYRQ = #{trade_date} and (is_inpatient is null or is_inpatient = '0')) b -- 排除住院订单
+ (select * from bankbill_history where C_JYRQ = #{trade_date} and (is_inpatient is null or is_inpatient = '0') and (bill_table_name is null or bill_table_name != '微信医保账单')) b -- 排除住院订单与微信医保账单
on a.PlatformTransId = b.C_SHDDH and a.TradingStatus = b.C_JYLX and ROUND(CAST(a.Amount AS DECIMAL(18,2)), 2) = ROUND(CAST(b.C_JYJE AS DECIMAL(18,2)), 2)
@@ -185,7 +186,7 @@
) a
left join
- (select * from bankbill_history where C_JYRQ = #{trade_date} and (is_inpatient is null or is_inpatient = '0')) b -- 排除住院订单
+ (select * from bankbill_history where C_JYRQ = #{trade_date} and (is_inpatient is null or is_inpatient = '0') and (bill_table_name is null or bill_table_name != '微信医保账单')) b -- 排除住院订单与微信医保账单
on a.PlatformTransId = b.C_SHDDH and a.TradingStatus = b.C_JYLX and ROUND(CAST(a.Amount AS DECIMAL(18,2)), 2) = ROUND(CAST(b.C_JYJE AS DECIMAL(18,2)), 2)
where b.C_SHDDH is null
@@ -236,11 +237,13 @@
select * from bankbill_history
where C_JYRQ = #{trade_date}
and (is_inpatient is null or is_inpatient = '0')
+ and (bill_table_name is null or bill_table_name != '微信医保账单')
and C_SHDDH in (
select C_SHDDH
from bankbill_history
where C_JYRQ = #{trade_date}
and (is_inpatient is null or is_inpatient = '0')
+ and (bill_table_name is null or bill_table_name != '微信医保账单')
group by C_SHDDH
having ROUND(SUM(CAST(C_JYJE AS DECIMAL(18,2))), 2) != 0
)
diff --git a/src/main/resources/templates/financialReconciliation/thirdDetail.html b/src/main/resources/templates/financialReconciliation/thirdDetail.html
index a7dca5d..7b1d34d 100644
--- a/src/main/resources/templates/financialReconciliation/thirdDetail.html
+++ b/src/main/resources/templates/financialReconciliation/thirdDetail.html
@@ -83,7 +83,7 @@
diff --git a/src/main/resources/templates/paymentStatistics/summary.html b/src/main/resources/templates/paymentStatistics/summary.html
index 62dec64..898762a 100644
--- a/src/main/resources/templates/paymentStatistics/summary.html
+++ b/src/main/resources/templates/paymentStatistics/summary.html
@@ -26,46 +26,41 @@
}
.content {
- width: 210rem;
- height: 297rem;
+ /* 放大整体画布,避免大额数字挤压 */
+ width: 240rem;
+ height: 320rem;
margin: 0 auto;
display: flex;
justify-content: center;
- align-items: center;
+ align-items: flex-start;
}
- .table {
- width: 90%;
- height: 90%;
- border-top: black solid 1px;
- border-left: black solid 1px;
- display: grid;
- grid-template-columns: 15% 15% 7.5% 20% 7.5% 20% 15%;
- grid-template-rows: 8% repeat(11, 4%) 48%;
- grid-template-areas:'a a a a a a a'
- '. b b b c c .'
- '. . . . . . .'
- 'd . . . e f g'
- 'd . . . e f g'
- 'd . . . e f g'
- 'd . . . e f g'
- '. h . . . . .'
- '. h . . . . .'
- '. h . . . . .'
- '. h . . . . .'
- '. . . . . . .'
- '. i i i i i i'
-
+ .hz-table {
+ width: 95%;
+ border-collapse: collapse;
+ table-layout: fixed;
+ margin-top: 2rem;
}
- .table div {
- border-right: 1px solid black;
- border-bottom: black solid 1px;
- height: 100%;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
+ .hz-table th,
+ .hz-table td {
+ border: 1px solid #000;
+ text-align: center;
+ padding: 0.8rem 0.5rem;
+ word-break: break-word;
+ }
+
+ .hz-table .title-row th {
+ font-size: 6rem;
+ border: none;
+ padding-top: 1rem;
+ padding-bottom: 1rem;
+ }
+
+ .hz-table .sub-title-row th {
+ font-size: 4rem;
+ border: none;
+ padding-bottom: 1rem;
}
@@ -95,75 +90,113 @@
-
-
-
- 统计时间:
-
-
-
银联商务
-
医院信息系统
-
差额
-
扫码支付
-
-
支付方式
-
笔数
-
-
-
-
金额
-
笔数
-
金额
-
-
微信支付
-
-
-
刷卡支付
-
-
-
-
支付宝支付
-
-
-
其他支付
-
-
-
支付宝支付
-
-
-
-
-
-
微信支付
-
-
-
-
-
-
银行卡支付
-
-
-
-
-
-
其他
-
-
-
-
-
-
合计
-
-
-
-
-
-
-
单边账原因
-
-
+
+
+
+ | 武警宁夏总队医院对账汇总表 |
+
+
+ | 统计时间: |
+
+
+ | 支付方式 |
+ 支付方式 |
+ 银联商务 |
+ 医院信息系统 现金金额:0.00 |
+ 差额 |
+
+
+ | 笔数 |
+ 金额 |
+ 笔数 |
+ 金额 |
+
+
+
+
+ | 扫码支付 |
+ 微信支付 |
+ |
+ |
+ |
+ |
+ |
+
+
+ | 刷卡支付 |
+ |
+ |
+
+
+ | 支付宝支付 |
+ |
+ |
+
+
+ | 其他支付 |
+ |
+ |
+
+
+
+ | 支付宝支付 |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | 微信支付 |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | 银行卡支付 |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | 其他 |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | 现金支付 |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | 合计 |
+ |
+ |
+ |
+ |
+ |
+
+
+
+ | 单边账原因: |
+
+
+
@@ -235,45 +268,28 @@
"print-color-adjust:exact;" +
" }\n" +
" .content{\n" +
- " width: 649px;\n" +
- " height: 978px;\n" +
+ " width: 740px;\n" +
+ " height: 1040px;\n" +
" margin:auto;\n" +
" display: flex;\n" +
" justify-content: center;\n" +
- " align-items:center;\n" +
+ " align-items:flex-start;\n" +
" text-align:center;\n" +
" }\n" +
- " .table{\n" +
- " width: 90%;\n" +
- " height: 90%;\n" +
- " border-top: black solid 1px;\n" +
- " border-left: black solid 1px;\n" +
- " display: grid;\n" +
- " grid-template-columns: 15% 15% 7.5% 20% 7.5% 20% 15%;\n" +
- " grid-template-rows: 8% repeat(11,4%) 48%;\n" +
- " grid-template-areas:'a a a a a a a'\n" +
- " '. b b b c c .'\n" +
- " '. . . . . . .'\n" +
- " 'd . . . e f g'\n" +
- " 'd . . . e f g'\n" +
- " 'd . . . e f g'\n" +
- " 'd . . . e f g'\n" +
- " '. h . . . . .'\n" +
- " '. h . . . . .'\n" +
- " '. h . . . . .'\n" +
- " '. h . . . . .'\n" +
- " '. . . . . . .'\n" +
- " '. i i i i i i'\n" +
- "\n" +
+ " .hz-table{\n" +
+ " width: 95%;\n" +
+ " border-collapse: collapse;\n" +
+ " table-layout: fixed;\n" +
+ " margin-top: 12px;\n" +
" }\n" +
- " .table div{\n" +
- " border-right: 1px solid black;\n" +
- " border-bottom: black solid 1px;\n" +
- " height: 100%;\n" +
- " width: 100%;\n" +
- " display: flex;\n" +
- " align-items:center;\n" +
- " justify-content:center;\n" +
+ " .hz-table th, .hz-table td{\n" +
+ " border:1px solid #000;\n" +
+ " text-align:center;\n" +
+ " padding:8px 4px;\n" +
+ " word-break: break-word;\n" +
+ " }\n" +
+ " .title-row th{font-size:36px;border:none;padding-top:10px;padding-bottom:10px;}\n" +
+ " .sub-title-row th{font-size:24px;border:none;padding-bottom:10px;}\n" +
" }";
@@ -341,10 +357,17 @@
//his需要统计 1银行卡支付 2扫码支付 3掌医支付 4现金支付 5其他
//三方需要统计 1_1微信支付 1_2支付宝支付 1_3云闪付支付 1_4其他支付 2银行卡支付 3掌医支付 4现金支付 5其他
+ let hisCashMoney = Number(hisMoneyData["5"] || 0);
+ let hisCashNum = Number(hisNumData["5"] || 0);
for (let key in hisMoneyData) {
- allHisMoney = allHisMoney + Number(hisMoneyData[key]);
+ if (key !== "5") {
+ allHisMoney = allHisMoney + Number(hisMoneyData[key]);
+ }
$("#his_money_" + key).html(formatAmount(hisMoneyData[key]));
}
+ $("#his_cash_money").html(formatAmount(hisCashMoney.toFixed(2)));
+ $("#his_cash_num_row").html(hisCashNum);
+ $("#his_cash_money_row").html(formatAmount(hisCashMoney.toFixed(2)));
for (let key in thirdMoneyData) {
allThirdMoney = allThirdMoney + Number(thirdMoneyData[key]);
@@ -352,7 +375,9 @@
}
for (let key in hisNumData) {
- allHisNum = allHisNum + Number(hisNumData[key]);
+ if (key !== "5") {
+ allHisNum = allHisNum + Number(hisNumData[key]);
+ }
$("#his_num_" + key).html(hisNumData[key]);
}
@@ -360,6 +385,8 @@
allThirdNum = allThirdNum + Number(thirdNumData[key]);
$("#third_num_" + key).html(thirdNumData[key]);
}
+ $("#third_num_cash").html('0');
+ $("#third_money_cash").html(formatAmount('0.00'));
$("#diff_1").html("");
$("#diff_2").html("");