--- 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 @@ |
57 | 57 |
*/ |
58 | 58 |
@GetMapping("/selectSchedule.json") |
59 | 59 |
@Operation(summary = "스케줄 출력") |
60 |
- public List<HashMap<String, Object>> selectSchedule(@RequestParam HashMap<String, Object> scheduleId) throws Exception { |
|
61 |
- return scheduleService.selectSchedule(scheduleId); |
|
60 |
+ public List<HashMap<String, Object>> selectSchedule(@RequestBody HashMap<String, Object> stdId) throws Exception { |
|
61 |
+ return scheduleService.selectSchedule(stdId); |
|
62 | 62 |
} |
63 | 63 |
|
64 | 64 |
|
--- src/main/resources/mybatis/mapper/lms/schedule-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/schedule-SQL.xml
... | ... | @@ -43,6 +43,7 @@ |
43 | 43 |
, std_id |
44 | 44 |
|
45 | 45 |
FROM schedule |
46 |
+ WHERE std_id = #{stdId} |
|
46 | 47 |
ORDER BY schdl_dt DESC |
47 | 48 |
</select> |
48 | 49 |
|
... | ... | @@ -53,8 +54,7 @@ |
53 | 54 |
--> |
54 | 55 |
<update id="scheduleUpdate" parameterType="ScheduleVO"> |
55 | 56 |
UPDATE schedule |
56 |
- SET schdl_dt = #{scheduleDt} |
|
57 |
- , schdl_unit = #{scheduleUnit} |
|
57 |
+ SET schdl_unit = #{scheduleUnit} |
|
58 | 58 |
, book_id = #{bookId} |
59 | 59 |
WHERE schdl_id = #{scheduleId} |
60 | 60 |
</update> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?