|
|
|
@ -26,12 +26,12 @@
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from purchase_setting_log
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
delete from purchase_setting_log
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" keyColumn="purchase_setting_log_id" keyProperty="purchaseSettingLogId" parameterType="com.ms.dal.entity.PurchaseSettingLog" useGeneratedKeys="true">
|
|
|
|
|
insert into purchase_setting_log
|
|
|
|
@ -47,26 +47,26 @@
|
|
|
|
|
<insert id="insertSelective" keyColumn="purchase_setting_log_id" keyProperty="purchaseSettingLogId" parameterType="com.ms.dal.entity.PurchaseSettingLog" useGeneratedKeys="true">
|
|
|
|
|
insert into purchase_setting_log
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="purchaseSettingLogId != null">purchaseSettingLogId,</if>
|
|
|
|
|
<if test="shopId != null">shopId,</if>
|
|
|
|
|
<if test="purchaseSettingLogId != null">purchase_setting_log_id,</if>
|
|
|
|
|
<if test="shopId != null">shop_id,</if>
|
|
|
|
|
<if test="source != null">source,</if>
|
|
|
|
|
<if test="data != null">data,</if>
|
|
|
|
|
<if test="beforeData != null">beforeData,</if>
|
|
|
|
|
<if test="operateShopId != null">operateShopId,</if>
|
|
|
|
|
<if test="operateIp != null">operateIp,</if>
|
|
|
|
|
<if test="gmtCreate != null">gmtCreate,</if>
|
|
|
|
|
<if test="gmtModified != null">gmtModified,</if>
|
|
|
|
|
<if test="beforeData != null">before_data,</if>
|
|
|
|
|
<if test="operateShopId != null">operate_shop_id,</if>
|
|
|
|
|
<if test="operateIp != null">operate_ip,</if>
|
|
|
|
|
<if test="gmtCreate != null">gmt_create,</if>
|
|
|
|
|
<if test="gmtModified != null">gmt_modified,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="purchaseSettingLogId != null">purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">shop_id = #{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="source != null">source = #{source,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="data != null">data = #{data,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="beforeData != null">before_data = #{beforeData,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateShopId != null">operate_shop_id = #{operateShopId,jdbcType=BIGINT},</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="purchaseSettingLogId != null">#{purchaseSettingLogId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="source != null">#{source,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="data != null">#{data,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="beforeData != null">#{beforeData,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateShopId != null">#{operateShopId,jdbcType=BIGINT},</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>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.PurchaseSettingLog">
|
|
|
|
@ -97,11 +97,11 @@
|
|
|
|
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ms.dal.entity.PurchaseSettingLog">
|
|
|
|
|
update purchase_setting_log
|
|
|
|
|
set
|
|
|
|
|
set
|
|
|
|
|
shop_id = #{shopId,jdbcType=BIGINT},
|
|
|
|
|
source = #{source,jdbcType=VARCHAR},
|
|
|
|
|
data = #{data,jdbcType=VARCHAR},
|
|
|
|
@ -110,6 +110,6 @@
|
|
|
|
|
operate_ip = #{operateIp,jdbcType=VARCHAR},
|
|
|
|
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
|
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
where purchase_setting_log_id = #{purchaseSettingLogId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|
|
|
|
|