|
|
|
@ -26,6 +26,11 @@
|
|
|
|
|
from ds_auto_purchase_agreement
|
|
|
|
|
where ds_auto_purchase_agreement_id = #{dsAutoPurchaseAgreementId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByShopId" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from ds_auto_purchase_agreement where shop_id = #{shopId,jdbcType=BIGINT}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
delete from ds_auto_purchase_agreement
|
|
|
|
@ -43,22 +48,22 @@
|
|
|
|
|
<insert id="insertSelective" keyColumn="ds_auto_purchase_agreement_id" keyProperty="dsAutoPurchaseAgreementId" parameterType="com.ms.dal.entity.DsAutoPurchaseAgreement" useGeneratedKeys="true">
|
|
|
|
|
insert into ds_auto_purchase_agreement
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="dsAutoPurchaseAgreementId != null">dsAutoPurchaseAgreementId,</if>
|
|
|
|
|
<if test="shopId != null">shopId,</if>
|
|
|
|
|
<if test="operateShopId != null">operateShopId,</if>
|
|
|
|
|
<if test="operateIp != null">operateIp,</if>
|
|
|
|
|
<if test="operateMemberId != null">operateMemberId,</if>
|
|
|
|
|
<if test="gmtCreate != null">gmtCreate,</if>
|
|
|
|
|
<if test="gmtModified != null">gmtModified,</if>
|
|
|
|
|
<if test="dsAutoPurchaseAgreementId != null">ds_auto_purchase_agreement_id,</if>
|
|
|
|
|
<if test="shopId != null">shop_id,</if>
|
|
|
|
|
<if test="operateShopId != null">operate_shop_id,</if>
|
|
|
|
|
<if test="operateIp != null">operate_ip,</if>
|
|
|
|
|
<if test="operateMemberId != null">operate_member_id,</if>
|
|
|
|
|
<if test="gmtCreate != null">gmt_create,</if>
|
|
|
|
|
<if test="gmtModified != null">gmt_modified,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="dsAutoPurchaseAgreementId != null">ds_auto_purchase_agreement_id = #{dsAutoPurchaseAgreementId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">shop_id = #{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="operateShopId != null">operate_shop_id = #{operateShopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="operateIp != null">operate_ip = #{operateIp,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateMemberId != null">operate_member_id = #{operateMemberId,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="dsAutoPurchaseAgreementId != null">#{dsAutoPurchaseAgreementId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="operateShopId != null">#{operateShopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="operateIp != null">#{operateIp,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="operateMemberId != null">#{operateMemberId,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.DsAutoPurchaseAgreement">
|
|
|
|
|