TRX 1 年之前
父節點
當前提交
6a882d4aef

+ 2 - 2
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/payment/ExpenseFlowServiceImpl.java

@@ -607,7 +607,7 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
             if (statisticType == StatisticType.Month) {
                 // 按月
                 int month = DateUtils.getCurrentMonthInYear();
-                for (int i = 0; i <= month; i++) {
+                for (int i = 1; i <= month; i++) {
                     String key = String.valueOf(i);
                     BigDecimal value = BigDecimal.ZERO;
                     if (map.containsKey(key)) {
@@ -630,7 +630,7 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
             } else if (statisticType == StatisticType.Week) {
                 // 按月
                 int week = DateUtils.getCurrentWeekInYear();
-                for (int i = 0; i <= week; i++) {
+                for (int i = 1; i <= week; i++) {
                     String key = String.valueOf(i);
                     BigDecimal value = BigDecimal.ZERO;
                     if (map.containsKey(key)) {