|
|
@@ -6,25 +6,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="YmdfFcMember" id="YmdfFcMemberResult">
|
|
|
<result property="fcMemberId" column="fc_member_id" />
|
|
|
+ <result property="fcMemberCode" column="fc_member_code" />
|
|
|
<result property="fcMemberName" column="fc_member_name" />
|
|
|
+ <result property="passwordHash" column="password_hash" />
|
|
|
<result property="fcApplicantId" column="fc_applicant_id" />
|
|
|
<result property="contactPerson" column="contact_person" />
|
|
|
<result property="contactPhone" column="contact_phone" />
|
|
|
- <result property="fcMemberCode" column="fc_member_code" />
|
|
|
- <result property="passwordHash" column="password_hash" />
|
|
|
<result property="registrationDate" column="registration_date" />
|
|
|
<result property="lastLoginDate" column="last_login_date" />
|
|
|
- <result property="isActive" column="is_active" />
|
|
|
- <result property="memberType" column="member_type" />
|
|
|
- <result property="myPageAccessAuth" column="-my_page_access_auth" />
|
|
|
+ <result property="activeStatus" column="active_status" />
|
|
|
+ <result property="fcMemberType" column="fc_member_type" />
|
|
|
+ <result property="mypageAccessAuth" column="mypage_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" />
|
|
|
<result property="posManagementLevel" column="pos_management_level" />
|
|
|
<result property="defaultPosId" column="default_pos_id" />
|
|
|
- <result property="posConfigVersion" column="pos_config_version" />
|
|
|
- <result property="posUpdateRequired" column="pos_update_required" />
|
|
|
- <result property="memberLevel" column="member_level" />
|
|
|
+ <result property="fcMemberLevel" column="fc_member_level" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
@@ -32,39 +30,183 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="version" column="version" />
|
|
|
+ <result property="brandName" column="brand_name" />
|
|
|
+ <result property="businessTypeName" column="business_type_name" />
|
|
|
+ <result property="regionName" column="region_name" />
|
|
|
+ <result property="mypageAccessAuthName" column="mypage_access_auth_name" />
|
|
|
+ <result property="activeStatusName" column="active_status_name" />
|
|
|
+ <result property="fcMemberTypeName" column="fc_member_type_name" />
|
|
|
+ <result property="loginInfoSentName" column="login_info_sent_name" />
|
|
|
+ <result property="posManagementLevelName" column="pos_management_level_name" />
|
|
|
+ <result property="fcMemberLevelName" column="fc_member_level_name" />
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="posId" column="pos_id" />
|
|
|
+ <result property="posType" column="pos_type" />
|
|
|
+ <result property="posModel" column="pos_model" />
|
|
|
+ <result property="posSerialNumber" column="pos_serial_number" />
|
|
|
+ <result property="posInstallDate" column="pos_install_date" />
|
|
|
+ <result property="posLinkInfo" column="pos_link_info" />
|
|
|
+ <result property="customSettings" column="custom_settings" />
|
|
|
+ <result property="posStatus" column="pos_status" />
|
|
|
+ <result property="lastUpdated" column="last_updated" />
|
|
|
+ <result property="activationCode" column="activation_code" />
|
|
|
+ <result property="apiAccessKey" column="api_access_key" />
|
|
|
+ <result property="dataSyncInterval" column="data_sync_interval" />
|
|
|
+ <result property="posSyncStatus" column="pos_sync_status" />
|
|
|
+ <result property="lastSyncTime" column="last_sync_time" />
|
|
|
+ <result property="posUpdateRequired" column="pos_update_required" />
|
|
|
+ <result property="posConfigVersion" column="pos_config_version" />
|
|
|
+ <result property="posUpdateReason" column="pos_update_reason" />
|
|
|
+ <result property="posStatusName" column="pos_status_name" />
|
|
|
+ <result property="posTypeName" column="pos_type_name" />
|
|
|
+ <result property="posSyncStatusName" column="pos_sync_status_name" />
|
|
|
+ <result property="posUpdateRequiredName" column="pos_update_required_name" />
|
|
|
+
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectYmdfFcMemberVo">
|
|
|
- select fc_member_id, fc_member_name, fc_applicant_id, contact_person, contact_phone, fc_member_code, password_hash, registration_date, last_login_date, is_active, member_type, -my_page_access_auth, external_contract_system_id, login_info_sent, login_info_sent_time, pos_management_level, default_pos_id, pos_config_version, pos_update_required, 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, 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
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="selectYmdfFcMemberListVo">
|
|
|
+ SELECT
|
|
|
+ fm.fc_member_id AS fc_member_id,
|
|
|
+ fm.version AS version,
|
|
|
+ fm.fc_member_code AS fc_member_code,
|
|
|
+ fm.fc_member_name AS fc_member_name,
|
|
|
+ fc_dict.dict_label AS brand_name,
|
|
|
+ fm.contact_person AS contact_person,
|
|
|
+ fm.contact_phone AS contact_phone,
|
|
|
+ fm_dict.dict_label AS business_type_name,
|
|
|
+ region.region_name AS region_name,
|
|
|
+ mypage_dict.dict_label AS mypage_access_auth_name
|
|
|
+ FROM
|
|
|
+ ymdf_fc_member fm
|
|
|
+ INNER JOIN ymdf_fc_member_store fms
|
|
|
+ ON fm.fc_member_id = fms.fc_member_id
|
|
|
+ AND fms.del_flag = 0
|
|
|
+ INNER JOIN ymdf_fc_store s
|
|
|
+ ON fms.fc_store_id = s.fc_store_id
|
|
|
+ AND s.del_flag = 0
|
|
|
+ LEFT JOIN sys_dict_data fc_dict
|
|
|
+ ON s.brand_code = fc_dict.dict_value
|
|
|
+ AND fc_dict.dict_type = 'yamada_fc_brand'
|
|
|
+ LEFT JOIN sys_dict_data fm_dict
|
|
|
+ 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'
|
|
|
+ LEFT JOIN region region
|
|
|
+ ON s.region_code = region.region_code
|
|
|
+
|
|
|
+ WHERE
|
|
|
+ fm.del_flag = 0
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectYmdfFcMemberList" parameterType="YmdfFcMember" resultMap="YmdfFcMemberResult">
|
|
|
- <include refid="selectYmdfFcMemberVo"/>
|
|
|
- <where>
|
|
|
- <if test="fcMemberName != null and fcMemberName != ''"> and fc_member_name like concat('%', #{fcMemberName}, '%')</if>
|
|
|
- <if test="fcApplicantId != null and fcApplicantId != ''"> and fc_applicant_id = #{fcApplicantId}</if>
|
|
|
- <if test="contactPerson != null and contactPerson != ''"> and contact_person = #{contactPerson}</if>
|
|
|
- <if test="contactPhone != null and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
|
|
|
- <if test="fcMemberCode != null and fcMemberCode != ''"> and fc_member_code = #{fcMemberCode}</if>
|
|
|
- <if test="passwordHash != null and passwordHash != ''"> and password_hash = #{passwordHash}</if>
|
|
|
- <if test="registrationDate != null "> and registration_date = #{registrationDate}</if>
|
|
|
- <if test="lastLoginDate != null "> and last_login_date = #{lastLoginDate}</if>
|
|
|
- <if test="isActive != null "> and is_active = #{isActive}</if>
|
|
|
- <if test="memberType != null "> and member_type = #{memberType}</if>
|
|
|
- <if test="myPageAccessAuth != null "> and -my_page_access_auth = #{myPageAccessAuth}</if>
|
|
|
- <if test="externalContractSystemId != null and externalContractSystemId != ''"> and external_contract_system_id = #{externalContractSystemId}</if>
|
|
|
- <if test="loginInfoSent != null "> and login_info_sent = #{loginInfoSent}</if>
|
|
|
- <if test="loginInfoSentTime != null "> and login_info_sent_time = #{loginInfoSentTime}</if>
|
|
|
- <if test="posManagementLevel != null "> and pos_management_level = #{posManagementLevel}</if>
|
|
|
- <if test="defaultPosId != null and defaultPosId != ''"> and default_pos_id = #{defaultPosId}</if>
|
|
|
- <if test="posConfigVersion != null and posConfigVersion != ''"> and pos_config_version = #{posConfigVersion}</if>
|
|
|
- <if test="posUpdateRequired != null "> and pos_update_required = #{posUpdateRequired}</if>
|
|
|
- <if test="memberLevel != null "> and member_level = #{memberLevel}</if>
|
|
|
- <if test="version != null "> and version = #{version}</if>
|
|
|
+ SELECT * FROM (
|
|
|
+ <include refid="selectYmdfFcMemberListVo"/>
|
|
|
+ ) t
|
|
|
+ <where>
|
|
|
+ <if test="fcMemberName != null and fcMemberName != ''">
|
|
|
+ AND t.fc_member_name LIKE CONCAT('%', #{fcMemberName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="contactPerson != null and contactPerson != ''">
|
|
|
+ AND t.contact_person LIKE CONCAT('%', #{contactPerson}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="contactPhone != null and contactPhone != ''">
|
|
|
+ AND t.contact_phone LIKE CONCAT('%', #{contactPhone}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="fcMemberCode != null and fcMemberCode != ''">
|
|
|
+ AND t.fc_member_code = #{fcMemberCode}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectYmdfMemberEditList" parameterType="String" resultMap="YmdfFcMemberResult">
|
|
|
+ SELECT
|
|
|
+ fm.fc_member_code,
|
|
|
+ fm.fc_member_name,
|
|
|
+ fm.registration_date,
|
|
|
+ fm.fc_applicant_id,
|
|
|
+ fm.contact_person,
|
|
|
+ fm.contact_phone,
|
|
|
+ fm.last_login_date,
|
|
|
+ fm.login_info_sent_time,
|
|
|
+ fm.default_pos_id,
|
|
|
+ fm.external_contract_system_id,
|
|
|
+ fc_dict.dict_label AS active_status_name,
|
|
|
+ fc_type.dict_label AS fc_member_type_name,
|
|
|
+ fc_mypage.dict_label AS mypage_access_auth_name,
|
|
|
+ fc_sent.dict_label AS login_info_sent_name,
|
|
|
+ fc_level.dict_label AS pos_management_level_name,
|
|
|
+ fc_member_level_dict.dict_label AS fc_member_level_name
|
|
|
+
|
|
|
+ FROM
|
|
|
+ ymdf_fc_member fm
|
|
|
+ LEFT JOIN sys_dict_data fc_dict
|
|
|
+ ON fm.active_status = fc_dict.dict_value
|
|
|
+ AND fc_dict.dict_type = 'fc_member_active_status'
|
|
|
+ LEFT JOIN sys_dict_data fc_type
|
|
|
+ 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'
|
|
|
+ LEFT JOIN sys_dict_data fc_sent
|
|
|
+ ON fm.login_info_sent = fc_sent.dict_value
|
|
|
+ AND fc_sent.dict_type = 'login_info_sent'
|
|
|
+ LEFT JOIN sys_dict_data fc_level
|
|
|
+ ON fm.pos_management_level = fc_level.dict_value
|
|
|
+ AND fc_level.dict_type = 'pos_management_level'
|
|
|
+ LEFT JOIN sys_dict_data fc_member_level_dict
|
|
|
+ ON fm.fc_member_level = fc_member_level_dict.dict_value
|
|
|
+ AND fc_member_level_dict.dict_type = 'fc_member_level'
|
|
|
+ WHERE
|
|
|
+ fm.del_flag = 0
|
|
|
+ AND fm.fc_member_id = #{fcMemberId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectYmdfMemberPosEditList" parameterType="YmdfFcMember" resultMap="YmdfFcMemberResult">
|
|
|
+ SELECT
|
|
|
+ fmp.pos_id,
|
|
|
+ fmp.pos_model,
|
|
|
+ fmp.pos_serial_number,
|
|
|
+ fmp.pos_install_date,
|
|
|
+ fmp.pos_link_info,
|
|
|
+ fmp.custom_settings,
|
|
|
+ fmp.activation_code,
|
|
|
+ fmp.api_access_key,
|
|
|
+ fmp.data_sync_interval,
|
|
|
+ fmp.last_sync_time,
|
|
|
+ fmp.pos_config_version,
|
|
|
+ fmp.pos_update_reason,
|
|
|
+ fc_status.dict_label AS pos_status_name,
|
|
|
+ fc_type.dict_label AS pos_type_name,
|
|
|
+ fc_sync_status.dict_label AS pos_sync_status_name,
|
|
|
+ fc_required.dict_label AS pos_update_required_name
|
|
|
+
|
|
|
+ FROM
|
|
|
+ ymdf_fc_member_pos fmp
|
|
|
+ LEFT JOIN sys_dict_data fc_status
|
|
|
+ ON fmp.pos_status = fc_status.dict_value
|
|
|
+ AND fc_status.dict_type = 'pos_status'
|
|
|
+ LEFT JOIN sys_dict_data fc_type
|
|
|
+ ON fmp.pos_type = fc_type.dict_value
|
|
|
+ AND fc_type.dict_type = 'pos_type'
|
|
|
+ LEFT JOIN sys_dict_data fc_sync_status
|
|
|
+ ON fmp.pos_sync_status = fc_sync_status.dict_value
|
|
|
+ AND fc_sync_status.dict_type = 'pos_sync_status'
|
|
|
+ LEFT JOIN sys_dict_data fc_required
|
|
|
+ ON fmp.pos_update_required = fc_required.dict_value
|
|
|
+ AND fc_required.dict_type = 'pos_update_required'
|
|
|
+ WHERE
|
|
|
+ fmp.del_flag = 0
|
|
|
+ AND fmp.fc_member_id = #{fcMemberId}
|
|
|
+ </select>
|
|
|
|
|
|
- <select id="selectYmdfFcMemberByfcMemberId" parameterType="String" resultMap="YmdfFcMemberResult">
|
|
|
+ <select id="selectYmdfFcMemberByFcMemberId" parameterType="String" resultMap="YmdfFcMemberResult">
|
|
|
<include refid="selectYmdfFcMemberVo"/>
|
|
|
where fc_member_id = #{fcMemberId}
|
|
|
</select>
|
|
|
@@ -73,25 +215,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into ymdf_fc_member
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="fcMemberId != null">fc_member_id,</if>
|
|
|
- <if test="fcMemberName != null">fc_member_name,</if>
|
|
|
- <if test="fcApplicantId != null and fcApplicantId != ''">fc_applicant_id,</if>
|
|
|
+ <if test="fcMemberCode != null and fcMemberCode != ''">fc_member_code,</if>
|
|
|
+ <if test="fcMemberName != null and fcMemberName != ''">fc_member_name,</if>
|
|
|
+ <if test="passwordHash != null and passwordHash != ''">password_hash,</if>
|
|
|
+ <if test="fcApplicantId != null">fc_applicant_id,</if>
|
|
|
<if test="contactPerson != null and contactPerson != ''">contact_person,</if>
|
|
|
<if test="contactPhone != null">contact_phone,</if>
|
|
|
- <if test="fcMemberCode != null and fcMemberCode != ''">fc_member_code,</if>
|
|
|
- <if test="passwordHash != null">password_hash,</if>
|
|
|
<if test="registrationDate != null">registration_date,</if>
|
|
|
<if test="lastLoginDate != null">last_login_date,</if>
|
|
|
- <if test="isActive != null">is_active,</if>
|
|
|
- <if test="memberType != null">member_type,</if>
|
|
|
- <if test="myPageAccessAuth != null">-my_page_access_auth,</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="externalContractSystemId != null">external_contract_system_id,</if>
|
|
|
<if test="loginInfoSent != null">login_info_sent,</if>
|
|
|
<if test="loginInfoSentTime != null">login_info_sent_time,</if>
|
|
|
<if test="posManagementLevel != null">pos_management_level,</if>
|
|
|
- <if test="defaultPosId != null">default_pos_id,</if>
|
|
|
- <if test="posConfigVersion != null">pos_config_version,</if>
|
|
|
- <if test="posUpdateRequired != null">pos_update_required,</if>
|
|
|
- <if test="memberLevel != null">member_level,</if>
|
|
|
+ <if test="fcMemberLevel != null">fc_member_level,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
@@ -102,25 +241,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fcMemberId != null">#{fcMemberId},</if>
|
|
|
- <if test="fcMemberName != null">#{fcMemberName},</if>
|
|
|
- <if test="fcApplicantId != null and fcApplicantId != ''">#{fcApplicantId},</if>
|
|
|
+ <if test="fcMemberCode != null and fcMemberCode != ''">#{fcMemberCode},</if>
|
|
|
+ <if test="fcMemberName != null and fcMemberName != ''">#{fcMemberName},</if>
|
|
|
+ <if test="passwordHash != null and passwordHash != ''">#{passwordHash},</if>
|
|
|
+ <if test="fcApplicantId != null">#{fcApplicantId},</if>
|
|
|
<if test="contactPerson != null and contactPerson != ''">#{contactPerson},</if>
|
|
|
<if test="contactPhone != null">#{contactPhone},</if>
|
|
|
- <if test="fcMemberCode != null and fcMemberCode != ''">#{fcMemberCode},</if>
|
|
|
- <if test="passwordHash != null">#{passwordHash},</if>
|
|
|
<if test="registrationDate != null">#{registrationDate},</if>
|
|
|
<if test="lastLoginDate != null">#{lastLoginDate},</if>
|
|
|
- <if test="isActive != null">#{isActive},</if>
|
|
|
- <if test="memberType != null">#{memberType},</if>
|
|
|
- <if test="myPageAccessAuth != null">#{myPageAccessAuth},</if>
|
|
|
+ <if test="activeStatus != null">#{activeStatus},</if>
|
|
|
+ <if test="fcMemberType != null">#{fcMemberType},</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>
|
|
|
<if test="posManagementLevel != null">#{posManagementLevel},</if>
|
|
|
- <if test="defaultPosId != null">#{defaultPosId},</if>
|
|
|
- <if test="posConfigVersion != null">#{posConfigVersion},</if>
|
|
|
- <if test="posUpdateRequired != null">#{posUpdateRequired},</if>
|
|
|
- <if test="memberLevel != null">#{memberLevel},</if>
|
|
|
+ <if test="fcMemberLevel != null">#{fcMemberLevel},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
@@ -134,25 +270,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateYmdfFcMember" parameterType="YmdfFcMember">
|
|
|
update ymdf_fc_member
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="fcMemberName != null">fc_member_name = #{fcMemberName},</if>
|
|
|
- <if test="fcApplicantId != null and fcApplicantId != ''">fc_applicant_id = #{fcApplicantId},</if>
|
|
|
+ <if test="fcMemberCode != null and fcMemberCode != ''">fc_member_code = #{fcMemberCode},</if>
|
|
|
+ <if test="fcMemberName != null and fcMemberName != ''">fc_member_name = #{fcMemberName},</if>
|
|
|
+ <if test="passwordHash != null and passwordHash != ''">password_hash = #{passwordHash},</if>
|
|
|
+ <if test="fcApplicantId != null">fc_applicant_id = #{fcApplicantId},</if>
|
|
|
<if test="contactPerson != null and contactPerson != ''">contact_person = #{contactPerson},</if>
|
|
|
<if test="contactPhone != null">contact_phone = #{contactPhone},</if>
|
|
|
- <if test="fcMemberCode != null and fcMemberCode != ''">fc_member_code = #{fcMemberCode},</if>
|
|
|
- <if test="passwordHash != null">password_hash = #{passwordHash},</if>
|
|
|
<if test="registrationDate != null">registration_date = #{registrationDate},</if>
|
|
|
<if test="lastLoginDate != null">last_login_date = #{lastLoginDate},</if>
|
|
|
- <if test="isActive != null">is_active = #{isActive},</if>
|
|
|
- <if test="memberType != null">member_type = #{memberType},</if>
|
|
|
- <if test="myPageAccessAuth != null">-my_page_access_auth = #{myPageAccessAuth},</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="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>
|
|
|
<if test="posManagementLevel != null">pos_management_level = #{posManagementLevel},</if>
|
|
|
- <if test="defaultPosId != null">default_pos_id = #{defaultPosId},</if>
|
|
|
- <if test="posConfigVersion != null">pos_config_version = #{posConfigVersion},</if>
|
|
|
- <if test="posUpdateRequired != null">pos_update_required = #{posUpdateRequired},</if>
|
|
|
- <if test="memberLevel != null">member_level = #{memberLevel},</if>
|
|
|
+ <if test="fcMemberLevel != null">fc_member_level = #{fcMemberLevel},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
@@ -164,16 +297,48 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where fc_member_id = #{fcMemberId}
|
|
|
</update>
|
|
|
|
|
|
- <delete id="deleteYmdfFcMemberByfcMemberId" parameterType="String">
|
|
|
+ <update id="updateMemberPassword" parameterType="YmdfFcMember">
|
|
|
+ update ymdf_fc_member
|
|
|
+ <set>
|
|
|
+ <if test="fcMemberCode != null and fcMemberCode != ''">fc_member_code = #{fcMemberCode},</if>
|
|
|
+ <if test="fcMemberName != null and fcMemberName != ''">fc_member_name = #{fcMemberName},</if>
|
|
|
+ <if test="passwordHash != null and passwordHash != ''">password_hash = #{passwordHash},</if>
|
|
|
+ <if test="fcApplicantId != null">fc_applicant_id = #{fcApplicantId},</if>
|
|
|
+ <if test="contactPerson != null and contactPerson != ''">contact_person = #{contactPerson},</if>
|
|
|
+ <if test="contactPhone != null">contact_phone = #{contactPhone},</if>
|
|
|
+ <if test="registrationDate != null">registration_date = #{registrationDate},</if>
|
|
|
+ <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="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>
|
|
|
+ <if test="posManagementLevel != null">pos_management_level = #{posManagementLevel},</if>
|
|
|
+ <if test="fcMemberLevel != null">fc_member_level = #{fcMemberLevel},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="version != null">version = version+1,</if>
|
|
|
+ </set>
|
|
|
+ where fc_member_id = #{fcMemberId}
|
|
|
+ and del_flag = '0'
|
|
|
+ <if test="version != null">
|
|
|
+ and version = #{version}
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteYmdfFcMemberByFcMemberId" parameterType="String">
|
|
|
delete from ymdf_fc_member where fc_member_id = #{fcMemberId}
|
|
|
</delete>
|
|
|
|
|
|
- <delete id="deleteYmdfFcMemberByfcMemberIds" parameterType="String">
|
|
|
+ <delete id="deleteYmdfFcMemberByFcMemberIds" parameterType="String">
|
|
|
delete from ymdf_fc_member where fc_member_id in
|
|
|
<foreach item="fcMemberId" collection="array" open="(" separator="," close=")">
|
|
|
#{fcMemberId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-
|
|
|
-
|
|
|
</mapper>
|