From 628e79d294458459648235cd435bbf613b159dac Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期一, 12 八月 2024 11:36:44 +0800
Subject: [PATCH] 2024-08-12 朱宝民 代码优化(yearMonth参数类型)

---
 pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/client/ClientSv.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/client/ClientSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/client/ClientSv.java
index 458abc2..1625593 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/client/ClientSv.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-statistics/src/main/java/com/dy/pipIrrStatistics/client/ClientSv.java
@@ -343,8 +343,9 @@
      * @return
      */
     public QueryResultVo<List<VoDayClient>> getDayAmountAndMoney(ClientAmountQO qo) {
-        Integer year = qo.getYearMonth().getYear();
-        Integer month = qo.getYearMonth().getMonthValue();
+        String yearMonth = qo.getYearMonth();
+        Integer year = Integer.parseInt(yearMonth.substring(0,4));
+        Integer month = Integer.parseInt(yearMonth.substring(5,7));
         qo.setYear(year);
         qo.setMonth(month);
 

--
Gitblit v1.8.0