From 4cd21aa340151f60d2083ae5d5e4fa0919912962 Mon Sep 17 00:00:00 2001 From: "kuang.yifei@iwhalecloud.com" Date: Wed, 1 Jun 2022 22:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=E7=BB=99=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E7=9A=84=E8=B4=A2=E5=8A=A1=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ghy/framework/config/ShiroConfig.java | 1 + .../payment/service/impl/FinancialDetailServiceImpl.java | 7 ++++++- .../resources/mapper/financial/FinancialDetailMapper.xml | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java b/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java index 0440cbca..b4f0a0fd 100644 --- a/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java +++ b/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java @@ -282,6 +282,7 @@ public class ShiroConfig filterChainDefinitionMap.put("/worker/**", "anon"); filterChainDefinitionMap.put("/customer/**", "anon"); filterChainDefinitionMap.put("/goods/**", "anon"); + filterChainDefinitionMap.put("/financial/**", "anon"); filterChainDefinitionMap.put("/tool/**", "anon"); filterChainDefinitionMap.put("/adapay/**", "anon"); filterChainDefinitionMap.put("/system/area/**", "anon"); diff --git a/ghy-payment/src/main/java/com/ghy/payment/service/impl/FinancialDetailServiceImpl.java b/ghy-payment/src/main/java/com/ghy/payment/service/impl/FinancialDetailServiceImpl.java index b0c98725..c804df2c 100644 --- a/ghy-payment/src/main/java/com/ghy/payment/service/impl/FinancialDetailServiceImpl.java +++ b/ghy-payment/src/main/java/com/ghy/payment/service/impl/FinancialDetailServiceImpl.java @@ -43,7 +43,12 @@ public class FinancialDetailServiceImpl implements FinancialDetailService { // 查询指定月支出的 request.setFlag("false"); request.setCreateTime(financialCountResponse.getCreateTime()); - financialCountResponse.setPayCount(financialDetailMapper.count(request).get(0).getPayCount()); + List payCountList = financialDetailMapper.count(request); + if( payCountList != null && payCountList.size() != 0){ + financialCountResponse.setPayCount(payCountList.get(0).getIncomeCount()); + }else { + financialCountResponse.setPayCount("0"); + } }); return list; } diff --git a/ghy-payment/src/main/resources/mapper/financial/FinancialDetailMapper.xml b/ghy-payment/src/main/resources/mapper/financial/FinancialDetailMapper.xml index 9942a683..d6301761 100644 --- a/ghy-payment/src/main/resources/mapper/financial/FinancialDetailMapper.xml +++ b/ghy-payment/src/main/resources/mapper/financial/FinancialDetailMapper.xml @@ -104,15 +104,15 @@