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.auth.dao.AuthDAO">
<resultMap id="userMap" type="UserVO">
<result property="usid" column="user_id"/>
<result property="loginId" column="user_lgn_id"/>
<result property="password" column="user_pswd"/>
<result property="userNm" column="user_nm"/>
<result property="email" column="user_email"/>
<result property="telno" column="user_telno"/>
<result property="useAt" column="use_at"/>
<result property="reg" column="reg"/>
<result property="registDt" column="regist_dt"/>
<result property="updusr" column="updusr"/>
<result property="updtDt" column="updt_dt"/>
<collection property="author" javaType="java.util.ArrayList" ofType="UserAuthorVO" select="findByUserAuthor" column="user_id" />
</resultMap>
<resultMap id="authMap" type="UserAuthorVO">
<result property="authorCode" column="authrt_cd" />
</resultMap>
<!--
작성자 : 방선주
작성일 : 2024.07.12
내 용 : 로그인 시 계정 검색
-->
<select id="findByUserIdSecurity" parameterType="String" resultMap="userMap">
SELECT user_id
, user_lgn_id
, "user_pswd"
, user_nm
, user_email
, user_telno
, use_at
, reg
, regist_dt
, updusr
, updt_dt
FROM users
WHERE user_lgn_id = #{loginId}
AND use_at = 'Y'
</select>
<!--
작성자 : 방선주
작성일 : 2024.07.12
내 용 : 로그인 시 계정 권한 검색
-->
<select id="findByUserAuthor" parameterType="String" resultMap="authMap">
SELECT authrt_cd
FROM users_author
WHERE user_id = #{usid}
</select>
<!--
작성자 : 방선주
작성일 : 2024.07.12
내 용 : 사용자 등록 관련
-->
<insert id="insertUser" parameterType="AuthVO">
INSERT INTO users( user_id
, user_lgn_id
, "user_pswd"
, user_nm
, user_email
, user_telno
, use_at
, reg
, regist_dt
, ednst_id
)VALUES( #{usid}
, #{loginId}
, #{password}
, #{userNm}
, #{email}
, #{telno}
, 'Y'
, #{reg}
, now()
, '1'
);
</insert>
<!--
작성자 : 방선주
작성일 : 2024.07.18
내 용 : 사용자 권한 등록
-->
<insert id="insertAuth" parameterType="HashMap">
INSERT INTO users_author(
user_id
, authrt_cd
) VALUES (
#{usid}
, #{authrt_cd}
);
</insert>
</mapper>