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