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 @@