多语言-修复座驾查询和保存问题
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
<result column="radish_original_price" property="radishOriginalPrice" jdbcType="INTEGER" />
|
||||
<result column="other_view_type" property="otherViewType" jdbcType="BIT" />
|
||||
<result column="view_url" property="viewUrl" jdbcType="VARCHAR" />
|
||||
<result column="partition_flag" property="partitionFlag" jdbcType="INTEGER" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause" >
|
||||
<where >
|
||||
@@ -93,7 +94,7 @@
|
||||
id, noble_id, name, pic, effect, price, renew_price, enable, days, seq, create_time,
|
||||
is_noble_limit, is_monster_limit, is_week_star_limit, is_activity_limit, limit_tip_msg,
|
||||
is_sale, label_type, limit_desc, original_price, redirect_link, gold_sale, radish_sale,
|
||||
radish_price, radish_renew_price, radish_original_price, car_goods_type,other_view_type,view_url
|
||||
radish_price, radish_renew_price, radish_original_price, car_goods_type,other_view_type,view_url,partition_flag
|
||||
</sql>
|
||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.accompany.business.model.CarGoodsExample" >
|
||||
select
|
||||
@@ -143,7 +144,7 @@
|
||||
is_sale, label_type, limit_desc,
|
||||
original_price, redirect_link, gold_sale,
|
||||
radish_sale, radish_price, radish_renew_price,
|
||||
radish_original_price, car_goods_type,other_view_type,view_url)
|
||||
radish_original_price, car_goods_type,other_view_type,view_url, partition_flag)
|
||||
values (#{nobleId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
|
||||
#{effect,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{renewPrice,jdbcType=BIGINT},
|
||||
#{enable,jdbcType=TINYINT}, #{days,jdbcType=INTEGER}, #{seq,jdbcType=INTEGER},
|
||||
@@ -153,7 +154,7 @@
|
||||
#{originalPrice,jdbcType=DECIMAL}, #{redirectLink,jdbcType=VARCHAR}, #{goldSale,jdbcType=BIT},
|
||||
#{radishSale,jdbcType=BIT}, #{radishPrice,jdbcType=INTEGER}, #{radishRenewPrice,jdbcType=INTEGER},
|
||||
#{radishOriginalPrice,jdbcType=INTEGER}, #{carGoodsType,jdbcType=TINYINT},
|
||||
#{otherViewType,jdbcType=BIT},#{viewUrl,jdbcType=VARCHAR})
|
||||
#{otherViewType,jdbcType=BIT},#{viewUrl,jdbcType=VARCHAR}, #{partitionFlag,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.accompany.business.model.CarGoods" useGeneratedKeys="true" keyProperty="id" >
|
||||
insert into car_goods
|
||||
@@ -242,6 +243,9 @@
|
||||
<if test="viewUrl != null" >
|
||||
view_url,
|
||||
</if>
|
||||
<if test="partitionFlag != null" >
|
||||
partition_flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="nobleId != null" >
|
||||
@@ -329,6 +333,9 @@
|
||||
<if test="viewUrl != null" >
|
||||
#{viewUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="partitionFlag != null" >
|
||||
#{partitionFlag,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.accompany.business.model.CarGoodsExample" resultType="java.lang.Integer" >
|
||||
@@ -427,6 +434,9 @@
|
||||
<if test="viewUrl != null" >
|
||||
view_url = #{viewUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="partitionFlag != null" >
|
||||
partition_flag = #{partitionFlag,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -460,7 +470,8 @@
|
||||
radish_price = #{record.radishPrice,jdbcType=INTEGER},
|
||||
radish_renew_price = #{record.radishRenewPrice,jdbcType=INTEGER},
|
||||
radish_original_price = #{record.radishOriginalPrice,jdbcType=INTEGER},
|
||||
car_goods_type = #{record.carGoodsType,jdbcType=TINYINT}
|
||||
car_goods_type = #{record.carGoodsType,jdbcType=TINYINT},
|
||||
partition_flag = #{record.partitionFlag,jdbcType=INTEGER}
|
||||
<if test="_parameter != null" >
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -552,6 +563,9 @@
|
||||
<if test="viewUrl != null" >
|
||||
view_url = #{viewUrl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="partitionFlag != null" >
|
||||
partition_flag = #{partitionFlag,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
@@ -584,7 +598,8 @@
|
||||
radish_original_price = #{radishOriginalPrice,jdbcType=INTEGER},
|
||||
car_goods_type = #{carGoodsType,jdbcType=TINYINT},
|
||||
other_view_type = #{otherViewType,jdbcType=BIT},
|
||||
view_url = #{viewUrl,jdbcType=VARCHAR}
|
||||
view_url = #{viewUrl,jdbcType=VARCHAR},
|
||||
partition_flag = #{partitionFlag,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Reference in New Issue
Block a user