Selaa lähdekoodia

【数据库整理】订单商品

chao 3 vuotta sitten
vanhempi
commit
b07e0ae4f6

+ 1 - 9
src/main/resources/mappings/modules/order/OrderProductMapper.xml

@@ -6,7 +6,7 @@
         <result column="id" property="contractProductId"/>
         <result column="shopName" property="shopName"/>
         <result column="shopId" property="shopId"/>
-        <result column="price1" property="price"/>
+        <result column="price" property="price"/>
         <result column="discount" property="discount"/>
         <result column="discountPrice" property="discountPrice"/>
         <result column="taxRate" property="taxRate"/>
@@ -38,8 +38,6 @@
 		  a.`productNo` AS `productNo`,
 		  a.`price` AS `price`,
 		  a.`normalPrice` AS `normalPrice`,
-		  a.`price0` AS `price0`,
-		  a.`price1` AS `price1`,
 		  a.`totalAmount` AS `totalAmount`,
 		  a.`totalFee` AS `totalFee`,
 		  a.`shouldPayFee` AS `shouldPayFee`,
@@ -256,8 +254,6 @@
 			preferential,
 			productUnit,
 		  	productImage,
-		  	price0,
-		  	price1,
 		  	discountFee,
 		  	payStatus,
 		  	status,
@@ -319,8 +315,6 @@
 			#{preferential},
 			#{productUnit},
 		  	#{productImage},
-		  	#{price},
-		  	#{price0},
 		  	#{discountFee},
 		  	#{payStatus},
 		  	#{status},
@@ -367,8 +361,6 @@
 		productNo = #{productNo,jdbcType=VARCHAR},
 		price = #{price,jdbcType=REAL},
 		normalPrice = #{normalPrice,jdbcType=REAL},
-		price0 = #{price0,jdbcType=DOUBLE},
-		price1 = #{price1,jdbcType=DOUBLE},
 		totalAmount = #{totalAmount,jdbcType=REAL},
 		discount = #{discount,jdbcType=DECIMAL},
 		discountPrice = #{discountPrice,jdbcType=DECIMAL},