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: