...
|
...
|
@@ -19,6 +19,7 @@ |
|
|
<result column="lastReducePriceTime" property="lastReducePriceTime" jdbcType="INTEGER" />
|
|
|
<result column="product_vip_status" property="productVipStatus" jdbcType="INTEGER" />
|
|
|
<result column="basic_price" property="basicPrice" jdbcType="DECIMAL" />
|
|
|
<result column="purchase_discount" property="purchaseDiscount" jdbcType="DECIMAL" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
...
|
...
|
@@ -27,7 +28,7 @@ |
|
|
vip1_price, vip2_price,
|
|
|
vip3_price,student_price,
|
|
|
update_time,student_coin_rate,lastReducePriceTime,
|
|
|
product_vip_status,basic_price
|
|
|
product_vip_status,basic_price,purchase_discount
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
...
|
...
|
@@ -52,7 +53,7 @@ |
|
|
vip_discount_type, vip_discount, vip_price,
|
|
|
vip1_price, vip2_price, vip3_price,student_price,
|
|
|
product_skn, update_time, student_coin_rate,lastReducePriceTime,
|
|
|
product_vip_status,basic_price
|
|
|
product_vip_status,basic_price,purchase_discount
|
|
|
)values (
|
|
|
#{retailPrice,jdbcType=DECIMAL},#{salesPrice,jdbcType=DECIMAL},#{purchasePrice,jdbcType=DECIMAL},
|
|
|
#{vipDiscountType,jdbcType=INTEGER},
|
...
|
...
|
@@ -61,7 +62,7 @@ |
|
|
#{vip2Price,jdbcType=DECIMAL},#{vip3Price,jdbcType=DECIMAL},#{studentPrice,jdbcType=DECIMAL},
|
|
|
#{productSkn,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}
|
|
|
,#{studentCoinRate,jdbcType=DECIMAL},#{lastReducePriceTime,jdbcType=INTEGER},
|
|
|
#{productVipStatus,jdbcType=INTEGER},#{basicPrice,jdbcType=DECIMAL}
|
|
|
#{productVipStatus,jdbcType=INTEGER},#{basicPrice,jdbcType=DECIMAL},#{purchaseDiscount,jdbcType=DECIMAL}
|
|
|
)
|
|
|
</insert>
|
|
|
|
...
|
...
|
@@ -114,6 +115,9 @@ |
|
|
<if test="basicPrice != null">
|
|
|
basic_price = #{basicPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="purchaseDiscount != null">
|
|
|
purchase_discount = #{purchaseDiscount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
</set>
|
|
|
where product_skn = #{productSkn,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
|