member -> netmember db테이블 명으로 변경
This commit is contained in:
parent
e7c4984c53
commit
62a3de2161
@ -16,10 +16,15 @@ package io.company.localhost.mapper;
|
|||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import io.company.localhost.common.dto.MapDto;
|
||||||
import io.company.localhost.vo.MemberVo;
|
import io.company.localhost.vo.MemberVo;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface MemberMapper {
|
public interface NetmemberMapper {
|
||||||
|
|
||||||
MemberVo findByLoginId(String id);
|
MemberVo findByLoginId(String id);
|
||||||
|
|
||||||
|
int insertMember(MapDto map);
|
||||||
|
|
||||||
|
int selectCheckId(String memberIds);
|
||||||
}
|
}
|
||||||
@ -1,24 +0,0 @@
|
|||||||
<?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="io.company.localhost.mapper.MemberMapper">
|
|
||||||
|
|
||||||
<select id="findByLoginId" parameterType="String" resultType="io.company.localhost.vo.MemberVo">
|
|
||||||
SELECT
|
|
||||||
MEMBER_ID AS id
|
|
||||||
, MEMBER_LOGIN_ID AS loginId
|
|
||||||
, MEMBER_ROLE AS role
|
|
||||||
, MEMBER_NAME AS name
|
|
||||||
, MEMBER_PASSWORD AS password
|
|
||||||
, MEMBER_EMAIL AS email
|
|
||||||
, IS_USED AS isUsed
|
|
||||||
, IS_DEL AS isDel
|
|
||||||
, ISRT_DATE AS isrtDate
|
|
||||||
, UPDT_DATE AS updtDate
|
|
||||||
, #{remember} as remember
|
|
||||||
FROM
|
|
||||||
MEMBER_TB
|
|
||||||
WHERE
|
|
||||||
MEMBER_LOGIN_ID = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
85
src/main/resources/mapper/netmemberMapper.xml
Normal file
85
src/main/resources/mapper/netmemberMapper.xml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?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="io.company.localhost.mapper.NetmemberMapper">
|
||||||
|
|
||||||
|
<select id="findByLoginId" parameterType="String" resultType="io.company.localhost.vo.MemberVo">
|
||||||
|
SELECT
|
||||||
|
MEMBERSEQ AS id
|
||||||
|
, MEMBERIDS AS loginId
|
||||||
|
, MEMBERROL AS role
|
||||||
|
, MEMBERTKN AS token
|
||||||
|
, MEMBERPRF AS profile
|
||||||
|
, MEMBERNAM AS name
|
||||||
|
, MEMBERPWD AS password
|
||||||
|
, MEMBERPWH AS passwordhint
|
||||||
|
, MEMBERPWR AS passwordRes
|
||||||
|
, MEMBERPOS AS position
|
||||||
|
, MEMBERARR AS address
|
||||||
|
, MEMBERZIP AS zipcode
|
||||||
|
, MEMBERTEL AS phone
|
||||||
|
, MEMBERRDT AS regist
|
||||||
|
, MEMBERCDT AS isCdt
|
||||||
|
, MEMBERPRM AS isUsed
|
||||||
|
, MEMBERDEL AS isDel
|
||||||
|
, MEMBERLEA AS isLea
|
||||||
|
, MEMBERCOL AS color
|
||||||
|
, MEMBERMBT AS mbit
|
||||||
|
FROM
|
||||||
|
netmember
|
||||||
|
WHERE
|
||||||
|
MEMBERIDS = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 회원가입 -->
|
||||||
|
<insert id="insertMember" useGeneratedKeys="true" keyProperty="MEMBERSEQ">
|
||||||
|
INSERT INTO netmember (
|
||||||
|
MEMBERIDS,
|
||||||
|
MEMBERROL,
|
||||||
|
MEMBERTKN,
|
||||||
|
MEMBERPRF,
|
||||||
|
MEMBERNAM,
|
||||||
|
MEMBERPWD,
|
||||||
|
MEMBERPWH,
|
||||||
|
MEMBERPWR,
|
||||||
|
MEMBERPOS,
|
||||||
|
MEMBERARR,
|
||||||
|
MEMBERZIP,
|
||||||
|
MEMBERTEL,
|
||||||
|
MEMBERRDT,
|
||||||
|
MEMBERCDT,
|
||||||
|
MEMBERPRM,
|
||||||
|
MEMBERDEL,
|
||||||
|
MEMBERLEA,
|
||||||
|
MEMBERCOL,
|
||||||
|
MEMBERMBT
|
||||||
|
) VALUES (
|
||||||
|
#{memberIds},
|
||||||
|
#{memberRol},
|
||||||
|
#{memberTkn},
|
||||||
|
#{memberPrf},
|
||||||
|
#{memberNam},
|
||||||
|
#{memberPwd},
|
||||||
|
#{memberPwh},
|
||||||
|
#{memberPwr},
|
||||||
|
#{memberPos},
|
||||||
|
#{memberArr},
|
||||||
|
#{memberZip},
|
||||||
|
#{memberTel},
|
||||||
|
#{memberRdt},
|
||||||
|
#{memberCdt},
|
||||||
|
#{memberPrm},
|
||||||
|
#{memberDel},
|
||||||
|
#{memberLea},
|
||||||
|
#{memberCol},
|
||||||
|
#{memberMbt}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<!-- 중복체크 -->
|
||||||
|
<select id="selectCheckId" resultType="int">
|
||||||
|
SELECT COUNT(*)
|
||||||
|
FROM netmember
|
||||||
|
WHERE MEMBERIDS = #{memberIds}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user