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.user_class.dao.UserClassDAO">
<!--
작 성 자 : 권민수
작 성 일 : 2024.07.31
내 용 : 반별 학생 매핑 테이블 sql 매핑 xml 문서
-->
<resultMap id="UserClassResultMap" type="UserClassVO">
<id property="stdId" column="std_id"/>
<id property="userId" column="user_id"/>
<id property="sclsId" column="scls_id"/>
<result property="stnQna" column="stn_qna"/>
<result property="fileMngId" column="file_mng_id"/>
</resultMap>
<select id="getUserClasses" resultMap="UserClassResultMap">
SELECT * FROM ai_lms.user_class
</select>
<select id="getUserClassById" parameterType="UserClassVO" resultMap="UserClassResultMap">
SELECT * FROM ai_lms.user_class
WHERE std_id = #{stdId}
</select>
<insert id="insertUserClass" parameterType="UserClassVO">
INSERT INTO
ai_lms.user_class (std_id,
user_id,
scls_id,
stn_qna,
file_mng_id)
VALUES (#{stdId},
#{userId},
#{sclsId},
#{stnQna},
#{fileMngId})
</insert>
<update id="updateUserClass" parameterType="UserClassVO">
UPDATE ai_lms.user_class
SET stn_qna = #{stnQna},
file_mng_id = #{fileMngId}
WHERE std_id = #{stdId}
</update>
<delete id="deleteUserClass" parameterType="UserClassVO">
DELETE FROM ai_lms.user_class
WHERE std_id = #{stdId}
</delete>
</mapper>