
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
2024-07-31
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.unit_learning.dao.UnitLearningDAO">
<resultMap id="unitLearningMap" type="UnitLearningVO">
<result property="unit_id" column="unit_id"/>
<result property="prblm_id" column="prblm_id"/>
<result property="wd_book_id" column="wd_book_id"/>
<result property="text_id" column="text_id"/>
<result property="eval_id" column="eval_id"/>
<result property="seq" column="seq"/>
</resultMap>
<!--
작 성 자 : 구자현
작 성 일 : 2024.07.26
내 용 : 전체 로드맵 목록 출력
-->
<select id="getAllUnitLearning" resultMap="unitLearningMap">
SELECT
unit_id,
prblm_id,
wd_book_id,
text_id,
eval_id,
seq
FROM unit_learning
</select>
<!--
작 성 자 : 구자현
작 성 일 : 2024.07.26
내 용 : 로드맵의 상세 정보
-->
<select id="getUnitLearningBySeq" parameterType="int" resultMap="unitLearningMap">
SELECT
unit_id,
prblm_id,
wd_book_id,
text_id,
eval_id,
seq
FROM unit_learning
WHERE seq = #{seq}
</select>
<!--
작 성 자 : 구자현
작 성 일 : 2024.07.26
내 용 : 로드맵 등록
-->
<insert id="insertUnitLearning" parameterType="unitLearningVO">
INSERT INTO unit_learning
(
unit_id,
prblm_id,
wd_book_id,
text_id,
eval_id,
seq
)
VALUES
(
#{unit_id},
#{prblm_id},
#{wd_book_id},
#{text_id},
#{eval_id},
#{seq}
)
</insert>
<!--
작 성 자 : 구자현
작 성 일 : 2024.07.26
내 용 : 로드맵 수정
-->
<update id="updateUnitLearning" parameterType="unitLearningVO">
UPDATE unit_learning
SET seq = #{seq}
WHERE unit_id = #{unit_id}
AND prblm_id = #{prblm_id}
AND wd_book_id = #{wd_book_id}
AND text_id = #{text_id}
AND eval_id = #{eval_id}
</update>
<!--
작 성 자 : 구자현
작 성 일 : 2024.07.26
내 용 : 로드맵 삭제
-->
<delete id="deleteUnitLearning" parameterType="int">
DELETE FROM unit_learning
WHERE seq = #{seq}
</delete>
</mapper>