Showing
1 changed file
with
7 additions
and
3 deletions
@@ -19,6 +19,7 @@ | @@ -19,6 +19,7 @@ | ||
19 | <result column="lastReducePriceTime" property="lastReducePriceTime" jdbcType="INTEGER" /> | 19 | <result column="lastReducePriceTime" property="lastReducePriceTime" jdbcType="INTEGER" /> |
20 | <result column="product_vip_status" property="productVipStatus" jdbcType="INTEGER" /> | 20 | <result column="product_vip_status" property="productVipStatus" jdbcType="INTEGER" /> |
21 | <result column="basic_price" property="basicPrice" jdbcType="DECIMAL" /> | 21 | <result column="basic_price" property="basicPrice" jdbcType="DECIMAL" /> |
22 | + <result column="purchase_discount" property="purchaseDiscount" jdbcType="DECIMAL" /> | ||
22 | </resultMap> | 23 | </resultMap> |
23 | 24 | ||
24 | <sql id="Base_Column_List"> | 25 | <sql id="Base_Column_List"> |
@@ -27,7 +28,7 @@ | @@ -27,7 +28,7 @@ | ||
27 | vip1_price, vip2_price, | 28 | vip1_price, vip2_price, |
28 | vip3_price,student_price, | 29 | vip3_price,student_price, |
29 | update_time,student_coin_rate,lastReducePriceTime, | 30 | update_time,student_coin_rate,lastReducePriceTime, |
30 | - product_vip_status,basic_price | 31 | + product_vip_status,basic_price,purchase_discount |
31 | </sql> | 32 | </sql> |
32 | 33 | ||
33 | <select id="selectByPrimaryKey" resultMap="BaseResultMap" | 34 | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
@@ -52,7 +53,7 @@ | @@ -52,7 +53,7 @@ | ||
52 | vip_discount_type, vip_discount, vip_price, | 53 | vip_discount_type, vip_discount, vip_price, |
53 | vip1_price, vip2_price, vip3_price,student_price, | 54 | vip1_price, vip2_price, vip3_price,student_price, |
54 | product_skn, update_time, student_coin_rate,lastReducePriceTime, | 55 | product_skn, update_time, student_coin_rate,lastReducePriceTime, |
55 | - product_vip_status,basic_price | 56 | + product_vip_status,basic_price,purchase_discount |
56 | )values ( | 57 | )values ( |
57 | #{retailPrice,jdbcType=DECIMAL},#{salesPrice,jdbcType=DECIMAL},#{purchasePrice,jdbcType=DECIMAL}, | 58 | #{retailPrice,jdbcType=DECIMAL},#{salesPrice,jdbcType=DECIMAL},#{purchasePrice,jdbcType=DECIMAL}, |
58 | #{vipDiscountType,jdbcType=INTEGER}, | 59 | #{vipDiscountType,jdbcType=INTEGER}, |
@@ -61,7 +62,7 @@ | @@ -61,7 +62,7 @@ | ||
61 | #{vip2Price,jdbcType=DECIMAL},#{vip3Price,jdbcType=DECIMAL},#{studentPrice,jdbcType=DECIMAL}, | 62 | #{vip2Price,jdbcType=DECIMAL},#{vip3Price,jdbcType=DECIMAL},#{studentPrice,jdbcType=DECIMAL}, |
62 | #{productSkn,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER} | 63 | #{productSkn,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER} |
63 | ,#{studentCoinRate,jdbcType=DECIMAL},#{lastReducePriceTime,jdbcType=INTEGER}, | 64 | ,#{studentCoinRate,jdbcType=DECIMAL},#{lastReducePriceTime,jdbcType=INTEGER}, |
64 | - #{productVipStatus,jdbcType=INTEGER},#{basicPrice,jdbcType=DECIMAL} | 65 | + #{productVipStatus,jdbcType=INTEGER},#{basicPrice,jdbcType=DECIMAL},#{purchaseDiscount,jdbcType=DECIMAL} |
65 | ) | 66 | ) |
66 | </insert> | 67 | </insert> |
67 | 68 | ||
@@ -114,6 +115,9 @@ | @@ -114,6 +115,9 @@ | ||
114 | <if test="basicPrice != null"> | 115 | <if test="basicPrice != null"> |
115 | basic_price = #{basicPrice,jdbcType=DECIMAL}, | 116 | basic_price = #{basicPrice,jdbcType=DECIMAL}, |
116 | </if> | 117 | </if> |
118 | + <if test="purchaseDiscount != null"> | ||
119 | + purchase_discount = #{purchaseDiscount,jdbcType=DECIMAL}, | ||
120 | + </if> | ||
117 | </set> | 121 | </set> |
118 | where product_skn = #{productSkn,jdbcType=INTEGER} | 122 | where product_skn = #{productSkn,jdbcType=INTEGER} |
119 | </update> | 123 | </update> |
-
Please register or login to post a comment