From 6fd57d6177bb3990aa2b4429b5af9c65d7b51940 Mon Sep 17 00:00:00 2001 From: Elliott <2423414394@qq.com> Date: Fri, 26 Dec 2025 09:23:03 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=86=9B=E4=BF=9D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=86=9B=E4=BF=9D=E6=94=AF=E4=BB=98=E7=AD=9B?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MilitaryInsuranceController.java | 9 ++++-- src/main/resources/mapper/HisDetailMapper.xml | 32 ++++++++++++++++--- .../militaryInsurance.html | 7 +++- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/saye/hospitalgd/controller/MilitaryInsuranceController.java b/src/main/java/com/saye/hospitalgd/controller/MilitaryInsuranceController.java index 16c6d78..7f947ef 100644 --- a/src/main/java/com/saye/hospitalgd/controller/MilitaryInsuranceController.java +++ b/src/main/java/com/saye/hospitalgd/controller/MilitaryInsuranceController.java @@ -19,10 +19,12 @@ import io.swagger.annotations.ApiParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; import java.io.File; -import java.math.BigDecimal; import java.util.*; /** @@ -82,7 +84,8 @@ public class MilitaryInsuranceController { try { HashMap map = new HashMap(); - map.put("payType", "3"); // 固定查询paytype=3的数据 + List payTypeList = Arrays.asList("3", "8"); + map.put("payTypeList", payTypeList); map.put("startTime", startTime); map.put("endTime", endTime); map.put("likeFiled", likeFiled); diff --git a/src/main/resources/mapper/HisDetailMapper.xml b/src/main/resources/mapper/HisDetailMapper.xml index 8a3017e..d39b773 100644 --- a/src/main/resources/mapper/HisDetailMapper.xml +++ b/src/main/resources/mapper/HisDetailMapper.xml @@ -23,7 +23,13 @@ ,ybtcAmount from hisbill_history - + + and PayType in + + #{pt} + + + and PayType = #{payType} @@ -47,7 +53,13 @@ select count(1) from hisbill_history - + + and PayType in + + #{pt} + + + and PayType = #{payType} @@ -201,7 +213,13 @@ ,ybtcAmount from hisbill_history where trade_date=#{trade_date} - + + and PayType in + + #{pt} + + + and PayType = #{payType} @@ -238,7 +256,13 @@ select count(1) as num,cast(IFNULL(sum(Amount),0) as decimal(19,2)) as money from hisbill_history - + + and PayType in + + #{pt} + + + and (PayType = #{payType} or PayType = CAST(#{payType} AS UNSIGNED)) diff --git a/src/main/resources/templates/financialReconciliation/militaryInsurance.html b/src/main/resources/templates/financialReconciliation/militaryInsurance.html index f9ba101..f62dbbe 100644 --- a/src/main/resources/templates/financialReconciliation/militaryInsurance.html +++ b/src/main/resources/templates/financialReconciliation/militaryInsurance.html @@ -222,7 +222,12 @@ width: 120, sort: false, templet: function (d) { - return '医院垫支'; // 固定显示为医院垫支,因为paytype=3 + if (d.PAYTYPE === '3') { + return '医院垫支'; + } else if (d.PAYTYPE === '8') { + return '军保支付'; + } + return d.PAYTYPE; } },