![](/assets/images/project_default_logo.png)
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.dao.UnitDAO">
<resultMap id="unitMap" type="UnitVO">
<result property="unitId" column="unit_id"/>
<result property="bookId" column="book_id"/>
<result property="unitName" column="unit_nm"/>
</resultMap>
<!--
작 성 자 : 김건택
작 성 일 : 2024.07.25
내 용 : 단원 목록 출력
-->
<select id="unitList" parameterType="UnitVO" resultType="com.takensoft.ai_lms.lms.unit.vo.UnitVO">
SELECT unit_id
, book_id
, unit_nm
FROM unit
WHERE book_id = #{bookId}
</select>
<!--
작 성 자 : 김건택
작 성 일 : 2024.07.25
내 용 : 단원 등록
-->
<insert id="insertUnit" parameterType="UnitVO">
INSERT INTO unit (
unit_id
, book_id
, unit_nm
) VALUES (
#{unitId}
, #{bookId}
, #{unitName}
)
</insert>
<!--
작 성 자 : 김건택
작 성 일 : 2024.07.25
내 용 : 단원 수정
-->
<update id="updateUnit" parameterType="UnitVO">
UPDATE unit
SET unit_id = #{unitId}
, book_id = #{bookId}
, unit_nm = #{unitName}
WHERE unit_id = #{unitId}
</update>
<!--
작 성 자 : 김건택
작 성 일 : 2024.07.25
내 용 : 단원 삭제
-->
<delete id="deleteUnit" parameterType="UnitVO">
DELETE
FROM unit
WHERE unit_id = #{unitId}
</delete>
<!--
작 성 자 : 김건택
작 성 일 : 2024.07.25
내 용 : 단원 상세 정보
-->
<select id="unitDetail" parameterType="UnitVO" resultType="com.takensoft.ai_lms.lms.unit.vo.UnitVO">
SELECT unit_id
, book_id
, unit_nm
FROM unit
WHERE unit_id = #{unitId}
</select>
</mapper>