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.unit.dao.UnitDAO">
<!--
작 성 자 : 박민혁
작 성 일 : 2024.07.25
내 용 : 경로 생성을 위해 만들어 놓은 xml,
CRUD를 이용하는데 삭제하거나 수정해서 사용해주세요
-->
<resultMap id="unitMap" type="UnitVO">
<result property="unitId" column="unit_id"/>
<result property="bookId" column="book_id"/>
<result property="unitName" column="unit_nm"/>
</resultMap>
<select id="unitList" resultType="com.takensoft.ai_lms.lms.unit.vo.UnitVO">
SELECT unit_id
, book_id
, unit_nm
FROM unit
</select>
<insert id="insertUnit" parameterType="UnitVO">
INSERT INTO unit (
unit_id
, book_id
, unit_nm
) VALUES (
#{unitId}
, #{bookId}
, #{unitName}
)
</insert>
<update id="updateUnit" parameterType="UnitVO">
UPDATE unit
SET unit_id = #{unitId}
, book_id = #{bookId}
, unit_nm = #{unitName}
WHERE unit_id = #{unitId}
</update>
<delete id="deleteUnit" parameterType="UnitVO">
DELETE
FROM unit
WHERE unit_id = #{unitId}
</delete>
<select id="unitDetail" parameterType="UnitVO" resultType="com.takensoft.ai_lms.lms.unit.vo.UnitVO">
SELECT unit_id
, book_id
, unit_nm
WHERE unit_id = #{unitId}
FROM unit
</select>
</mapper>