
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.word_book.dao.WordDAO">
<!--
작 성 자 : 권민수
작 성 일 : 2024.07.30
내 용 : 단어 정보 관련 sql 매핑 xml 문서
-->
<resultMap id="wordResultMap" type="WordVO">
<id property="wdId" column="wd_id" />
<result property="wdBookId" column="wd_book_id" />
<result property="wdNm" column="wd_nm" />
<result property="wdMnng" column="wd_mnng" />
<result property="fileMngId" column="file_mng_id" />
</resultMap>
<select id="getWordsByBookId" resultMap="wordResultMap">
SELECT *
FROM word
WHERE wd_book_id = #{wdBookId}
</select>
<insert id="insertWord">
INSERT INTO
word (wd_id,
wd_book_id,
wd_nm,
wd_mnng,
file_mng_id)
VALUES (#{wdId},
#{wdBookId},
#{wdNm},
#{wdMnng},
#{fileMngId})
</insert>
<update id="updateWord">
UPDATE word
SET wd_nm = #{wdNm},
wd_mnng = #{wdMnng},
file_mng_id = #{fileMngId}
WHERE wd_id = #{wdId}
</update>
<delete id="deleteWord">
DELETE FROM word
WHERE wd_id = #{wdId}
</delete>
</mapper>