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.photo.dao.PhotoDAO">
<resultMap id="photoMap" type="photoVO">
<result property="photoId" column="photo_id"/>
<result property="photoMngId" column="photo_mng_id"/>
<result property="photoDate" column="photo_dt"/>
<result property="likeCount" column="like_data"/>
<result property="unitId" column="unit_id"/>
<result property="stdId" column="std_id"/>
<result property="fileMngId" column="file_mng_id"/>
</resultMap>
<select id="photoList" resultType="com.takensoft.ai_lms.lms.photo.vo.PhotoVO">
SELECT unit_id
, book_id
, unit_nm
FROM unit
</select>
<insert id="insertphoto" parameterType="PhotoVO">
INSERT INTO unit (
unit_id
, book_id
, unit_nm
) VALUES (
#{unitId}
, #{bookId}
, #{unitName}
)
</insert>
<update id="updatephoto" parameterType="PhotoVO">
UPDATE unit
SET unit_id = #{unitId}
, book_id = #{bookId}
, unit_nm = #{unitName}
WHERE unit_id = #{unitId}
</update>
<delete id="deletephoto" parameterType="PhotoVO">
DELETE
FROM unit
WHERE unit_id = #{unitId}
</delete>
<select id="photoDetail" parameterType="PhotoVO" resultType="com.takensoft.ai_lms.lms.photo.vo.PhotoVO">
SELECT unit_id
, book_id
, unit_nm
WHERE unit_id = #{unitId}
FROM unit
</select>
</mapper>