|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="jp.yamada.fcbi.mapper.YmdfFcMemberMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="YmdfFcMember" id="YmdfFcMemberResult">
|
|
|
<result property="fcMemberId" column="fc_member_id" />
|
|
|
<result property="fcMemberCode" column="fc_member_code" />
|
|
|
@@ -16,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="lastLoginDate" column="last_login_date" />
|
|
|
<result property="activeStatus" column="active_status" />
|
|
|
<result property="fcMemberType" column="fc_member_type" />
|
|
|
- <result property="mypageAccessAuth" column="mypage_access_auth" />
|
|
|
+ <result property="myPageAccessAuth" column="my_page_access_auth" />
|
|
|
<result property="externalContractSystemId" column="external_contract_system_id" />
|
|
|
<result property="loginInfoSent" column="login_info_sent" />
|
|
|
<result property="loginInfoSentTime" column="login_info_sent_time" />
|
|
|
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectYmdfFcMemberVo">
|
|
|
- select fc_member_id, fc_member_code, fc_member_name, password_hash, fc_applicant_id, contact_person, contact_phone, registration_date, last_login_date, active_status, fc_member_type, mypage_access_auth, external_contract_system_id, login_info_sent, login_info_sent_time, pos_management_level, fc_member_level, del_flag, create_by, create_time, update_by, update_time, remark, version from ymdf_fc_member
|
|
|
+ select fc_member_id, fc_member_code, fc_member_name, password_hash, fc_applicant_id, contact_person, contact_phone, registration_date, last_login_date, active_status, fc_member_type, my_page_access_auth, external_contract_system_id, login_info_sent, login_info_sent_time, pos_management_level, fc_member_level, del_flag, create_by, create_time, update_by, update_time, remark, version from ymdf_fc_member
|
|
|
</sql>
|
|
|
|
|
|
<sql id="selectYmdfFcMemberListVo">
|
|
|
@@ -95,8 +95,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ON s.business_type_code = fm_dict.dict_value
|
|
|
AND fm_dict.dict_type = 'yamada_business_type'
|
|
|
LEFT JOIN sys_dict_data mypage_dict
|
|
|
- ON fm.mypage_access_auth = mypage_dict.dict_value
|
|
|
- AND mypage_dict.dict_type = 'mypage_access_auth'
|
|
|
+ ON fm.my_page_access_auth = mypage_dict.dict_value
|
|
|
+ AND mypage_dict.dict_type = 'my_page_access_auth'
|
|
|
LEFT JOIN region region
|
|
|
ON s.region_code = region.region_code
|
|
|
|
|
|
@@ -137,7 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
fm.login_info_sent_time,
|
|
|
fm.default_pos_id,
|
|
|
fm.external_contract_system_id,
|
|
|
- fm.mypage_access_auth,
|
|
|
+ fm.my_page_access_auth,
|
|
|
fm.active_status,
|
|
|
fm.pos_management_level,
|
|
|
fm.fc_member_level,
|
|
|
@@ -160,8 +160,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ON fm.fc_member_type = fc_type.dict_value
|
|
|
AND fc_type.dict_type = 'fc_member_type'
|
|
|
LEFT JOIN sys_dict_data fc_mypage
|
|
|
- ON fm.mypage_access_auth = fc_mypage.dict_value
|
|
|
- AND fc_mypage.dict_type = 'mypage_access_auth'
|
|
|
+ ON fm.my_page_access_auth = fc_mypage.dict_value
|
|
|
+ AND fc_mypage.dict_type = 'my_page_access_auth'
|
|
|
LEFT JOIN sys_dict_data fc_sent
|
|
|
ON fm.login_info_sent = fc_sent.dict_value
|
|
|
AND fc_sent.dict_type = 'login_info_sent'
|
|
|
@@ -220,7 +220,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
fmp.del_flag = 0
|
|
|
AND fmp.fc_member_id = #{fcMemberId}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectYmdfFcMemberByFcMemberId" parameterType="String" resultMap="YmdfFcMemberResult">
|
|
|
<include refid="selectYmdfFcMemberVo"/>
|
|
|
where fc_member_id = #{fcMemberId}
|
|
|
@@ -240,7 +240,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="lastLoginDate != null">last_login_date,</if>
|
|
|
<if test="activeStatus != null">active_status,</if>
|
|
|
<if test="fcMemberType != null">fc_member_type,</if>
|
|
|
- <if test="mypageAccessAuth != null">mypage_access_auth,</if>
|
|
|
+ <if test="myPageAccessAuth != null">my_page_access_auth,</if>
|
|
|
<if test="externalContractSystemId != null">external_contract_system_id,</if>
|
|
|
<if test="loginInfoSent != null">login_info_sent,</if>
|
|
|
<if test="loginInfoSentTime != null">login_info_sent_time,</if>
|
|
|
@@ -266,7 +266,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="lastLoginDate != null">#{lastLoginDate},</if>
|
|
|
<if test="activeStatus != null">#{activeStatus},</if>
|
|
|
<if test="fcMemberType != null">#{fcMemberType},</if>
|
|
|
- <if test="mypageAccessAuth != null">#{mypageAccessAuth},</if>
|
|
|
+ <if test="myPageAccessAuth != null">#{myPageAccessAuth},</if>
|
|
|
<if test="externalContractSystemId != null">#{externalContractSystemId},</if>
|
|
|
<if test="loginInfoSent != null">#{loginInfoSent},</if>
|
|
|
<if test="loginInfoSentTime != null">#{loginInfoSentTime},</if>
|
|
|
@@ -295,7 +295,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="lastLoginDate != null">last_login_date = #{lastLoginDate},</if>
|
|
|
<if test="activeStatus != null">active_status = #{activeStatus},</if>
|
|
|
<if test="fcMemberType != null">fc_member_type = #{fcMemberType},</if>
|
|
|
- <if test="mypageAccessAuth != null">mypage_access_auth = #{mypageAccessAuth},</if>
|
|
|
+ <if test="myPageAccessAuth != null">my_page_access_auth = #{myPageAccessAuth},</if>
|
|
|
<if test="externalContractSystemId != null">external_contract_system_id = #{externalContractSystemId},</if>
|
|
|
<if test="loginInfoSent != null">login_info_sent = #{loginInfoSent},</if>
|
|
|
<if test="loginInfoSentTime != null">login_info_sent_time = #{loginInfoSentTime},</if>
|
|
|
@@ -329,7 +329,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="lastLoginDate != null">last_login_date = #{lastLoginDate},</if>
|
|
|
<if test="activeStatus != null">active_status = #{activeStatus},</if>
|
|
|
<if test="fcMemberType != null">fc_member_type = #{fcMemberType},</if>
|
|
|
- <if test="mypageAccessAuth != null">mypage_access_auth = #{mypageAccessAuth},</if>
|
|
|
+ <if test="myPageAccessAuth != null">my_page_access_auth = #{myPageAccessAuth},</if>
|
|
|
<if test="externalContractSystemId != null">external_contract_system_id = #{externalContractSystemId},</if>
|
|
|
<if test="loginInfoSent != null">login_info_sent = #{loginInfoSent},</if>
|
|
|
<if test="loginInfoSentTime != null">login_info_sent_time = #{loginInfoSentTime},</if>
|
|
|
@@ -355,9 +355,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteYmdfFcMemberByFcMemberIds" parameterType="String">
|
|
|
- delete from ymdf_fc_member where fc_member_id in
|
|
|
+ delete from ymdf_fc_member where fc_member_id in
|
|
|
<foreach item="fcMemberId" collection="array" open="(" separator="," close=")">
|
|
|
#{fcMemberId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-</mapper>
|
|
|
+</mapper>
|