Parcourir la source

:bug: 上周期范围统计修正

lag il y a 1 an
Parent
commit
66659ce082

+ 3 - 1
src/main/java/com/shcd/service/impl/SpStatementShipUsageMonthServiceImpl.java

@@ -22,6 +22,7 @@ import java.util.List;
 import java.util.concurrent.CompletableFuture;
 import java.util.stream.Collectors;
 import javax.annotation.Resource;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -31,6 +32,7 @@ import org.springframework.stereotype.Service;
  * @createDate 2024-01-22 14:11:42
  */
 @Service
+@Slf4j
 public class SpStatementShipUsageMonthServiceImpl extends
     ServiceImpl<SpStatementShipUsageMonthMapper, SpStatementShipUsageMonth>
     implements SpStatementShipUsageMonthService {
@@ -71,7 +73,7 @@ public class SpStatementShipUsageMonthServiceImpl extends
       lastCycleMonth = 12;
     } else {
       lastMonth = thisMonth - 1;
-      lastYear = thisYear - 1;
+      lastYear = thisYear;
       lastCycleYear = thisYear;
       lastCycleMonth = thisMonth - 2;
     }