|
|
|
@ -46,12 +46,12 @@
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from ds_purchase_setting_log
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
delete from ds_purchase_setting_log
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" keyColumn="ds_purchase_setting_log_id" keyProperty="dsPurchaseSettingLogId" parameterType="com.ms.dal.entity.DsPurchaseSettingLog" useGeneratedKeys="true">
|
|
|
|
|
insert into ds_purchase_setting_log
|
|
|
|
@ -77,56 +77,56 @@
|
|
|
|
|
<insert id="insertSelective" keyColumn="ds_purchase_setting_log_id" keyProperty="dsPurchaseSettingLogId" parameterType="com.ms.dal.entity.DsPurchaseSettingLog" useGeneratedKeys="true">
|
|
|
|
|
insert into ds_purchase_setting_log
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="dsPurchaseSettingLogId != null">dsPurchaseSettingLogId,</if>
|
|
|
|
|
<if test="shopId != null">shopId,</if>
|
|
|
|
|
<if test="isAutoPurchase != null">isAutoPurchase,</if>
|
|
|
|
|
<if test="gmtIsAutoPurchase != null">gmtIsAutoPurchase,</if>
|
|
|
|
|
<if test="isAutoPay != null">isAutoPay,</if>
|
|
|
|
|
<if test="delayPurchaseMinute != null">delayPurchaseMinute,</if>
|
|
|
|
|
<if test="isUseForbiddenPurchaseProfit != null">isUseForbiddenPurchaseProfit,</if>
|
|
|
|
|
<if test="forbiddenPurchaseProfit != null">forbiddenPurchaseProfit,</if>
|
|
|
|
|
<if test="isUseForbiddenKeywords != null">isUseForbiddenKeywords,</if>
|
|
|
|
|
<if test="forbiddenKeywords != null">forbiddenKeywords,</if>
|
|
|
|
|
<if test="isUseAllProduct != null">isUseAllProduct,</if>
|
|
|
|
|
<if test="isUsePartProduct != null">isUsePartProduct,</if>
|
|
|
|
|
<if test="isForbidIsolationPurchase != null">isForbidIsolationPurchase,</if>
|
|
|
|
|
<if test="filterAutoPurchaseProductIds != null">filterAutoPurchaseProductIds,</if>
|
|
|
|
|
<if test="allowAutoPurchaseProductIds != null">allowAutoPurchaseProductIds,</if>
|
|
|
|
|
<if test="isPurchaseLogisticsUpdateToPlatform != null">isPurchaseLogisticsUpdateToPlatform,</if>
|
|
|
|
|
<if test="deliveryTimeType != null">deliveryTimeType,</if>
|
|
|
|
|
<if test="operateShopId != null">operateShopId,</if>
|
|
|
|
|
<if test="operateMemberId != null">operateMemberId,</if>
|
|
|
|
|
<if test="actionSource != null">actionSource,</if>
|
|
|
|
|
<if test="operateIp != null">operateIp,</if>
|
|
|
|
|
<if test="gmtCreate != null">gmtCreate,</if>
|
|
|
|
|
<if test="gmtModified != null">gmtModified,</if>
|
|
|
|
|
<if test="beforeData != null">beforeData,</if>
|
|
|
|
|
<if test="dsPurchaseSettingLogId != null">ds_Purchase_Setting_Log_Id,</if>
|
|
|
|
|
<if test="shopId != null">shop_Id,</if>
|
|
|
|
|
<if test="isAutoPurchase != null">is_Auto_Purchase,</if>
|
|
|
|
|
<if test="gmtIsAutoPurchase != null">gmt_Is_Auto_Purchase,</if>
|
|
|
|
|
<if test="isAutoPay != null">is_Auto_Pay,</if>
|
|
|
|
|
<if test="delayPurchaseMinute != null">delay_Purchase_Minute,</if>
|
|
|
|
|
<if test="isUseForbiddenPurchaseProfit != null">is_Use_Forbidden_Purchase_Profit,</if>
|
|
|
|
|
<if test="forbiddenPurchaseProfit != null">forbidden_Purchase_Profit,</if>
|
|
|
|
|
<if test="isUseForbiddenKeywords != null">is_Use_Forbidden_Keywords,</if>
|
|
|
|
|
<if test="forbiddenKeywords != null">forbidden_Keywords,</if>
|
|
|
|
|
<if test="isUseAllProduct != null">is_Use_All_Product,</if>
|
|
|
|
|
<if test="isUsePartProduct != null">is_Use_Part_Product,</if>
|
|
|
|
|
<if test="isForbidIsolationPurchase != null">is_Forbid_Isolation_Purchase,</if>
|
|
|
|
|
<if test="filterAutoPurchaseProductIds != null">filter_Auto_Purchase_Product_Ids,</if>
|
|
|
|
|
<if test="allowAutoPurchaseProductIds != null">allow_Auto_Purchase_Product_Ids,</if>
|
|
|
|
|
<if test="isPurchaseLogisticsUpdateToPlatform != null">is_Purchase_Logistics_Update_To_Platform,</if>
|
|
|
|
|
<if test="deliveryTimeType != null">delivery_Time_Type,</if>
|
|
|
|
|
<if test="operateShopId != null">operate_Shop_Id,</if>
|
|
|
|
|
<if test="operateMemberId != null">operate_Member_Id,</if>
|
|
|
|
|
<if test="actionSource != null">action_Source,</if>
|
|
|
|
|
<if test="operateIp != null">operate_Ip,</if>
|
|
|
|
|
<if test="gmtCreate != null">gmt_Create,</if>
|
|
|
|
|
<if test="gmtModified != null">gmt_Modified,</if>
|
|
|
|
|
<if test="beforeData != null">before_Data,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="dsPurchaseSettingLogId != null">ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">shop_id = #{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="isAutoPurchase != null">is_auto_purchase = #{isAutoPurchase,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="gmtIsAutoPurchase != null">gmt_is_auto_purchase = #{gmtIsAutoPurchase,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
<if test="isAutoPay != null">is_auto_pay = #{isAutoPay,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="delayPurchaseMinute != null">delay_purchase_minute = #{delayPurchaseMinute,jdbcType=SMALLINT},</if>
|
|
|
|
|
<if test="isUseForbiddenPurchaseProfit != null">is_use_forbidden_purchase_profit = #{isUseForbiddenPurchaseProfit,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="forbiddenPurchaseProfit != null">forbidden_purchase_profit = #{forbiddenPurchaseProfit,jdbcType=DECIMAL},</if>
|
|
|
|
|
<if test="isUseForbiddenKeywords != null">is_use_forbidden_keywords = #{isUseForbiddenKeywords,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="forbiddenKeywords != null">forbidden_keywords = #{forbiddenKeywords,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="isUseAllProduct != null">is_use_all_product = #{isUseAllProduct,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="isUsePartProduct != null">is_use_part_product = #{isUsePartProduct,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="isForbidIsolationPurchase != null">is_forbid_isolation_purchase = #{isForbidIsolationPurchase,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="filterAutoPurchaseProductIds != null">filter_auto_purchase_product_ids = #{filterAutoPurchaseProductIds,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="allowAutoPurchaseProductIds != null">allow_auto_purchase_product_ids = #{allowAutoPurchaseProductIds,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="isPurchaseLogisticsUpdateToPlatform != null">is_purchase_logistics_update_to_platform = #{isPurchaseLogisticsUpdateToPlatform,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="deliveryTimeType != null">delivery_time_type = #{deliveryTimeType,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateShopId != null">operate_shop_id = #{operateShopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="operateMemberId != null">operate_member_id = #{operateMemberId,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="actionSource != null">action_source = #{actionSource,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateIp != null">operate_ip = #{operateIp,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="gmtCreate != null">gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
<if test="gmtModified != null">gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
<if test="beforeData != null">before_data = #{beforeData,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="dsPurchaseSettingLogId != null">#{dsPurchaseSettingLogId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="isAutoPurchase != null">#{isAutoPurchase,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="gmtIsAutoPurchase != null">#{gmtIsAutoPurchase,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
<if test="isAutoPay != null">#{isAutoPay,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="delayPurchaseMinute != null">#{delayPurchaseMinute,jdbcType=SMALLINT},</if>
|
|
|
|
|
<if test="isUseForbiddenPurchaseProfit != null">#{isUseForbiddenPurchaseProfit,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="forbiddenPurchaseProfit != null">#{forbiddenPurchaseProfit,jdbcType=DECIMAL},</if>
|
|
|
|
|
<if test="isUseForbiddenKeywords != null">#{isUseForbiddenKeywords,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="forbiddenKeywords != null">#{forbiddenKeywords,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="isUseAllProduct != null">#{isUseAllProduct,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="isUsePartProduct != null">#{isUsePartProduct,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="isForbidIsolationPurchase != null">#{isForbidIsolationPurchase,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="filterAutoPurchaseProductIds != null">#{filterAutoPurchaseProductIds,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="allowAutoPurchaseProductIds != null">#{allowAutoPurchaseProductIds,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="isPurchaseLogisticsUpdateToPlatform != null">#{isPurchaseLogisticsUpdateToPlatform,jdbcType=BOOLEAN},</if>
|
|
|
|
|
<if test="deliveryTimeType != null">#{deliveryTimeType,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateShopId != null">#{operateShopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="operateMemberId != null">#{operateMemberId,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="actionSource != null">#{actionSource,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateIp != null">#{operateIp,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="gmtCreate != null">#{gmtCreate,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
<if test="gmtModified != null">#{gmtModified,jdbcType=TIMESTAMP},</if>
|
|
|
|
|
<if test="beforeData != null">#{beforeData,jdbcType=VARCHAR},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.DsPurchaseSettingLog">
|
|
|
|
@ -202,11 +202,11 @@
|
|
|
|
|
before_data = #{beforeData,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.DsPurchaseSettingLog">
|
|
|
|
|
update ds_purchase_setting_log
|
|
|
|
|
set
|
|
|
|
|
set
|
|
|
|
|
shop_id = #{shopId,jdbcType=BIGINT},
|
|
|
|
|
is_auto_purchase = #{isAutoPurchase,jdbcType=BOOLEAN},
|
|
|
|
|
gmt_is_auto_purchase = #{gmtIsAutoPurchase,jdbcType=TIMESTAMP},
|
|
|
|
@ -230,6 +230,6 @@
|
|
|
|
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
|
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
|
|
before_data = #{beforeData,jdbcType=VARCHAR}
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where ds_purchase_setting_log_id = #{dsPurchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|
|
|
|
|