...
|
...
|
@@ -15,10 +15,11 @@ |
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
<result column="effect_time" property="effectTime" jdbcType="INTEGER" />
|
|
|
<result column="end_time" property="endTime" jdbcType="INTEGER" />
|
|
|
<result column="status" property="status" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, plan_id, product_skn, current_saleprice, special_price, vip_discount_type, vip_price,
|
|
|
vip1_price, vip2_price, vip3_price, create_time, effect_time, end_time
|
|
|
vip1_price, vip2_price, vip3_price, create_time, effect_time, end_time,status
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -45,12 +46,12 @@ |
|
|
current_saleprice, special_price, vip_discount_type,
|
|
|
vip_price, vip1_price, vip2_price,
|
|
|
vip3_price, create_time, effect_time,
|
|
|
end_time)
|
|
|
end_time,status)
|
|
|
values (#{id,jdbcType=INTEGER}, #{planId,jdbcType=INTEGER}, #{productSkn,jdbcType=INTEGER},
|
|
|
#{currentSaleprice,jdbcType=DECIMAL}, #{specialPrice,jdbcType=DECIMAL}, #{vipDiscountType,jdbcType=INTEGER},
|
|
|
#{vipPrice,jdbcType=DECIMAL}, #{vip1Price,jdbcType=DECIMAL}, #{vip2Price,jdbcType=DECIMAL},
|
|
|
#{vip3Price,jdbcType=DECIMAL}, #{createTime,jdbcType=INTEGER}, #{effectTime,jdbcType=INTEGER},
|
|
|
#{endTime,jdbcType=INTEGER})
|
|
|
#{endTime,jdbcType=INTEGER},#{status,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ProductPricePlan" >
|
|
|
insert into product_price_plan
|
...
|
...
|
@@ -94,6 +95,9 @@ |
|
|
<if test="endTime != null" >
|
|
|
end_time,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
...
|
...
|
@@ -135,6 +139,9 @@ |
|
|
<if test="endTime != null" >
|
|
|
#{endTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ProductPricePlan" >
|
...
|
...
|
@@ -176,6 +183,9 @@ |
|
|
<if test="endTime != null" >
|
|
|
end_time = #{endTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
@@ -192,7 +202,8 @@ |
|
|
vip3_price = #{vip3Price,jdbcType=DECIMAL},
|
|
|
create_time = #{createTime,jdbcType=INTEGER},
|
|
|
effect_time = #{effectTime,jdbcType=INTEGER},
|
|
|
end_time = #{endTime,jdbcType=INTEGER}
|
|
|
end_time = #{endTime,jdbcType=INTEGER},
|
|
|
status = #{status,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|