File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.takensoft.ai_lms.lms.schedule.dao.ScheduleDAO">
<resultMap id="scheduleMap" type="ScheduleVO">
<result property="scheduleId" column="schdl_id"/>
<result property="scheduleDt" column="schdl_dt"/>
<result property="scheduleUnit" column="schdl_unit"/>
<result property="bookId" column="book_id"/>
<result property="stdId" column="std_id"/>
</resultMap>
<!--
작성자 : 이은진
작성일 : 2024.07.29
내 용 : 스케줄 등록
-->
<insert id="insertSchedule" parameterType="ScheduleVO">
INSERT INTO schedule (schdl_id
,schdl_dt
,schdl_unit
,book_id
,std_id
) VALUES (#{scheduleId}
,now()
,#{scheduleUnit}
,#{bookId}
,#{stdId}
);
</insert>
<!--
작성자 : 이은진
작성일 : 2024.07.29
내 용 : 스케줄 출력
-->
<select id="selectSchedule" parameterType="HashMap" resultType="HashMap">
SELECT schdl_id
, schdl_dt
, schdl_unit
, book_id
, std_id
FROM schedule
WHERE std_id = #{stdId}
ORDER BY schdl_dt DESC
</select>
<!--
작성자 : 이은진
작성일 : 2024.07.29
내 용 : 스케줄 수정
-->
<update id="scheduleUpdate" parameterType="ScheduleVO">
UPDATE schedule
SET schdl_unit = #{scheduleUnit}
, book_id = #{bookId}
WHERE schdl_id = #{scheduleId}
</update>
<!--
작성자 : 이은진
작성일 : 2024.07.29
내 용 : 스케줄 삭제
-->
<delete id="scheduleDelete" parameterType="String">
DELETE FROM schedule
WHERE schdl_id = #{scheduleId}
</delete>
</mapper>