이은진 이은진 07-31
240731 이은진 학습 일정 관리 기능 추가
@51c6caf46d5d191ff7d8b463f4c7159ae7b6904e
src/main/java/com/takensoft/ai_lms/lms/schedule/web/ScheduleController.java
--- src/main/java/com/takensoft/ai_lms/lms/schedule/web/ScheduleController.java
+++ src/main/java/com/takensoft/ai_lms/lms/schedule/web/ScheduleController.java
@@ -57,8 +57,8 @@
      */
     @GetMapping("/selectSchedule.json")
     @Operation(summary = "스케줄 출력")
-    public List<HashMap<String, Object>> selectSchedule(@RequestParam HashMap<String, Object> scheduleId) throws Exception {
-        return scheduleService.selectSchedule(scheduleId);
+    public List<HashMap<String, Object>> selectSchedule(@RequestBody HashMap<String, Object> stdId) throws Exception {
+        return scheduleService.selectSchedule(stdId);
     }
 
 
src/main/resources/mybatis/mapper/lms/schedule-SQL.xml
--- src/main/resources/mybatis/mapper/lms/schedule-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/schedule-SQL.xml
@@ -43,6 +43,7 @@
              , std_id
 
         FROM schedule
+        WHERE std_id = #{stdId}
         ORDER BY schdl_dt DESC
     </select>
 
@@ -53,8 +54,7 @@
      -->
     <update id="scheduleUpdate" parameterType="ScheduleVO">
         UPDATE schedule
-        SET schdl_dt = #{scheduleDt}
-          , schdl_unit = #{scheduleUnit}
+        SET schdl_unit = #{scheduleUnit}
           , book_id = #{bookId}
         WHERE schdl_id = #{scheduleId}
     </update>
Add a comment
List