From 092c8c53480ae4e54fddc9cd678e9c699e50e1ca Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Thu, 02 Feb 2023 07:25:49 +0000
Subject: [PATCH] 按照个人排班调整时间初始值 任务分配时默认继承任务开始结束时间

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
index dbf7693..21b68ce 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
@@ -48,6 +48,7 @@
 import org.springframework.web.multipart.MultipartFile;
 import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
+import java.text.ParseException;
 import java.util.*;
 import java.util.stream.Collectors;
 
@@ -239,4 +240,24 @@
             throw new BadRequestException("角色权限不足");
         }
     }
+
+    /**
+     * 获取用户日历信息
+     * @param month
+     * @return
+     * @throws Exception
+     */
+    @GetMapping(value = "/getUserCalendarInfo/{month}")
+    @Log("获取用户日历信息")
+    @ApiOperation("获取用户日历信息")
+    public ResponseEntity<Object> getUserCalendarInfo(@PathVariable String month) throws Exception {
+        return new ResponseEntity<>(userService.getUserCalendarInfo(month), HttpStatus.OK);
+    }
+
+    @GetMapping(value = "/getUserBaseInfo")
+    @Log("获取用户基础信息")
+    @ApiOperation("获取用户日历信息")
+    public ResponseEntity<Object> getUserBaseInfo() throws ParseException {
+        return new ResponseEntity<>(userService.getUserBaseInfo(), HttpStatus.OK);
+    }
 }

--
Gitblit v1.9.3