|
|
@@ -282,6 +282,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
+ <insert id="insertYmdfFcMemberPos" parameterType="YmdfFcMember">
|
|
|
+ insert into ymdf_fc_member_pos
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="fcMemberId != null and fcMemberId != ''">fc_member_id,</if>
|
|
|
+ <if test="posId != null and posId != ''">pos_id,</if>
|
|
|
+ <if test="posType != null and posType != ''">pos_type,</if>
|
|
|
+ <if test="posModel != null">pos_model,</if>
|
|
|
+ <if test="posSerialNumber != null and posSerialNumber != ''">pos_serial_number,</if>
|
|
|
+ <if test="posInstallDate != null">pos_install_date,</if>
|
|
|
+ <if test="posLinkInfo != null">pos_link_info,</if>
|
|
|
+ <if test="customSettings != null">custom_settings,</if>
|
|
|
+ <if test="posStatus != null">pos_status,</if>
|
|
|
+ <if test="lastUpdated != null">last_updated,</if>
|
|
|
+ <if test="activationCode != null">activation_code,</if>
|
|
|
+ <if test="apiAccessKey != null">api_access_key,</if>
|
|
|
+ <if test="dataSyncInterval != null">data_sync_interval,</if>
|
|
|
+ <if test="posSyncStatus != null">pos_sync_status,</if>
|
|
|
+ <if test="lastSyncTime != null">last_sync_time,</if>
|
|
|
+ <if test="posUpdateRequired != null">pos_update_required,</if>
|
|
|
+ <if test="posConfigVersion != null">pos_config_version,</if>
|
|
|
+ <if test="posUpdateReason != null">pos_update_reason,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ <if test="version != null">version,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="fcMemberId != null and fcMemberId != ''">#{fcMemberId},</if>
|
|
|
+ <if test="posId != null and posId != ''">#{posId},</if>
|
|
|
+ <if test="posType != null and posType != ''">#{posType},</if>
|
|
|
+ <if test="posModel != null">#{posModel},</if>
|
|
|
+ <if test="posSerialNumber != null and posSerialNumber != ''">#{posSerialNumber},</if>
|
|
|
+ <if test="posInstallDate != null">#{posInstallDate},</if>
|
|
|
+ <if test="posLinkInfo != null">#{posLinkInfo},</if>
|
|
|
+ <if test="customSettings != null">#{customSettings},</if>
|
|
|
+ <if test="posStatus != null">#{posStatus},</if>
|
|
|
+ <if test="lastUpdated != null">#{lastUpdated},</if>
|
|
|
+ <if test="activationCode != null">#{activationCode},</if>
|
|
|
+ <if test="apiAccessKey != null">#{apiAccessKey},</if>
|
|
|
+ <if test="dataSyncInterval != null">#{dataSyncInterval},</if>
|
|
|
+ <if test="posSyncStatus != null">#{posSyncStatus},</if>
|
|
|
+ <if test="lastSyncTime != null">#{lastSyncTime},</if>
|
|
|
+ <if test="posUpdateRequired != null">#{posUpdateRequired},</if>
|
|
|
+ <if test="posConfigVersion != null">#{posConfigVersion},</if>
|
|
|
+ <if test="posUpdateReason != null">#{posUpdateReason},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="version != null">#{version},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
<update id="updateYmdfFcMember" parameterType="YmdfFcMember">
|
|
|
update ymdf_fc_member
|
|
|
<set>
|
|
|
@@ -308,6 +368,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="version != null">version = version+1,</if>
|
|
|
+ <if test="defaultPosId != null">default_pos_id = #{defaultPosId},</if>
|
|
|
</set>
|
|
|
where fc_member_id = #{fcMemberId}
|
|
|
and del_flag = '0'
|
|
|
@@ -342,6 +403,43 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="version != null">version = version+1,</if>
|
|
|
+ <if test="defaultPosId != null">default_pos_id = #{defaultPosId},</if>
|
|
|
+ </set>
|
|
|
+ where fc_member_id = #{fcMemberId}
|
|
|
+ and del_flag = '0'
|
|
|
+ <if test="version != null">
|
|
|
+ and version = #{version}
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updatePos" parameterType="YmdfFcMember">
|
|
|
+ update ymdf_fc_member_pos
|
|
|
+ <set>
|
|
|
+ <if test="fcMemberId != null and fcMemberId != ''">fc_member_id = #{fcMemberId},</if>
|
|
|
+ <if test="posId != null and posId != ''">pos_id = #{posId},</if>
|
|
|
+ <if test="posType != null and posType != ''">pos_type = #{posType},</if>
|
|
|
+ <if test="posModel != null">pos_model = #{posModel},</if>
|
|
|
+ <if test="posSerialNumber != null and posSerialNumber != ''">pos_serial_number = #{posSerialNumber},</if>
|
|
|
+ <if test="posInstallDate != null">pos_install_date = #{posInstallDate},</if>
|
|
|
+ <if test="posLinkInfo != null">pos_link_info = #{posLinkInfo},</if>
|
|
|
+ <if test="customSettings != null">custom_settings = #{customSettings},</if>
|
|
|
+ <if test="posStatus != null">pos_status = #{posStatus},</if>
|
|
|
+ <if test="lastUpdated != null">last_updated = #{lastUpdated},</if>
|
|
|
+ <if test="activationCode != null">activation_code = #{activationCode},</if>
|
|
|
+ <if test="apiAccessKey != null">api_access_key = #{apiAccessKey},</if>
|
|
|
+ <if test="dataSyncInterval != null">data_sync_interval = #{dataSyncInterval},</if>
|
|
|
+ <if test="posSyncStatus != null">pos_sync_status = #{posSyncStatus},</if>
|
|
|
+ <if test="lastSyncTime != null">last_sync_time = #{lastSyncTime},</if>
|
|
|
+ <if test="posUpdateRequired != null">pos_update_required = #{posUpdateRequired},</if>
|
|
|
+ <if test="posConfigVersion != null">pos_config_version = #{posConfigVersion},</if>
|
|
|
+ <if test="posUpdateReason != null">pos_update_reason = #{posUpdateReason},</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'
|