guarantee-lsq преди 3 години
родител
ревизия
20cc9ba1e0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      platform-service/src/main/java/com/platform/service/workplace/impl/IndexServiceImpl.java

+ 1 - 1
platform-service/src/main/java/com/platform/service/workplace/impl/IndexServiceImpl.java

@@ -53,7 +53,7 @@ public class IndexServiceImpl implements IndexService {
         String userId = SecurityUtils.getUserInfo().getUserId();
         LocalDateTime now = LocalDateTime.now();
         int year = now.getYear();
-        int month = now.getDayOfMonth();
+        int month = now.getMonthValue();
         R r = R.success();
         switch (roleCode){
             case CommonConstants.WORKPLACE_REPAIR_NORMAL: