Commit df99648637de77f0efd98332dd8cbca0be831a9b
1 parent
e01a85ed
update:运费与商品单价
Showing
14 changed files
with
108 additions
and
31 deletions
etrade-order/src/main/java/com/diligrp/etrade/order/domain/OrderDto.java
@@ -237,6 +237,8 @@ public class OrderDto { | @@ -237,6 +237,8 @@ public class OrderDto { | ||
237 | 237 | ||
238 | /** 订单配送状态 */ | 238 | /** 订单配送状态 */ |
239 | private Integer achieveState; | 239 | private Integer achieveState; |
240 | + /** 运费 */ | ||
241 | + private Long transportFee; | ||
240 | 242 | ||
241 | public Integer getAchieveType() { | 243 | public Integer getAchieveType() { |
242 | return achieveType; | 244 | return achieveType; |
@@ -715,4 +717,12 @@ public class OrderDto { | @@ -715,4 +717,12 @@ public class OrderDto { | ||
715 | public void setRelationId(Long relationId) { | 717 | public void setRelationId(Long relationId) { |
716 | this.relationId = relationId; | 718 | this.relationId = relationId; |
717 | } | 719 | } |
720 | + | ||
721 | + public Long getTransportFee() { | ||
722 | + return transportFee; | ||
723 | + } | ||
724 | + | ||
725 | + public void setTransportFee(Long transportFee) { | ||
726 | + this.transportFee = transportFee; | ||
727 | + } | ||
718 | } | 728 | } |
etrade-order/src/main/java/com/diligrp/etrade/order/domain/OrderPaymentDto.java
@@ -80,6 +80,9 @@ public class OrderPaymentDto { | @@ -80,6 +80,9 @@ public class OrderPaymentDto { | ||
80 | /** 订单卖家手续费收费状态 */ | 80 | /** 订单卖家手续费收费状态 */ |
81 | private Integer sellerFeeState; | 81 | private Integer sellerFeeState; |
82 | 82 | ||
83 | + /** 运费 */ | ||
84 | + private Long transportFee; | ||
85 | + | ||
83 | public BigDecimal getTotleSellerFee() { | 86 | public BigDecimal getTotleSellerFee() { |
84 | return totleSellerFee; | 87 | return totleSellerFee; |
85 | } | 88 | } |
@@ -319,4 +322,12 @@ public class OrderPaymentDto { | @@ -319,4 +322,12 @@ public class OrderPaymentDto { | ||
319 | public void setTradeId(String tradeId) { | 322 | public void setTradeId(String tradeId) { |
320 | this.tradeId = tradeId; | 323 | this.tradeId = tradeId; |
321 | } | 324 | } |
325 | + | ||
326 | + public Long getTransportFee() { | ||
327 | + return transportFee; | ||
328 | + } | ||
329 | + | ||
330 | + public void setTransportFee(Long transportFee) { | ||
331 | + this.transportFee = transportFee; | ||
332 | + } | ||
322 | } | 333 | } |
etrade-order/src/main/java/com/diligrp/etrade/order/domain/ProductDto.java
@@ -70,6 +70,7 @@ public class ProductDto { | @@ -70,6 +70,7 @@ public class ProductDto { | ||
70 | @NotNull(message = "店铺id不能为空",groups = {MultipleOrderDto.class}) | 70 | @NotNull(message = "店铺id不能为空",groups = {MultipleOrderDto.class}) |
71 | private Long shopId; | 71 | private Long shopId; |
72 | 72 | ||
73 | + private String productUnit; | ||
73 | 74 | ||
74 | public String getCode() { | 75 | public String getCode() { |
75 | return code; | 76 | return code; |
@@ -222,4 +223,12 @@ public class ProductDto { | @@ -222,4 +223,12 @@ public class ProductDto { | ||
222 | public void setSalesMode(Integer salesMode) { | 223 | public void setSalesMode(Integer salesMode) { |
223 | this.salesMode = salesMode; | 224 | this.salesMode = salesMode; |
224 | } | 225 | } |
226 | + | ||
227 | + public String getProductUnit() { | ||
228 | + return productUnit; | ||
229 | + } | ||
230 | + | ||
231 | + public void setProductUnit(String productUnit) { | ||
232 | + this.productUnit = productUnit; | ||
233 | + } | ||
225 | } | 234 | } |
etrade-order/src/main/java/com/diligrp/etrade/order/domain/ProductExtDto.java
@@ -73,6 +73,8 @@ public class ProductExtDto { | @@ -73,6 +73,8 @@ public class ProductExtDto { | ||
73 | 73 | ||
74 | private String orderCode; | 74 | private String orderCode; |
75 | 75 | ||
76 | + private String productUnit; | ||
77 | + | ||
76 | /** 下单提货方式(1自提,2配送) */ | 78 | /** 下单提货方式(1自提,2配送) */ |
77 | private Integer achieveType = 1; | 79 | private Integer achieveType = 1; |
78 | 80 | ||
@@ -251,4 +253,12 @@ public class ProductExtDto { | @@ -251,4 +253,12 @@ public class ProductExtDto { | ||
251 | public void setShopId(Long shopId) { | 253 | public void setShopId(Long shopId) { |
252 | this.shopId = shopId; | 254 | this.shopId = shopId; |
253 | } | 255 | } |
256 | + | ||
257 | + public String getProductUnit() { | ||
258 | + return productUnit; | ||
259 | + } | ||
260 | + | ||
261 | + public void setProductUnit(String productUnit) { | ||
262 | + this.productUnit = productUnit; | ||
263 | + } | ||
254 | } | 264 | } |
etrade-order/src/main/java/com/diligrp/etrade/order/model/OrderGoods.java
@@ -94,6 +94,10 @@ public class OrderGoods { | @@ -94,6 +94,10 @@ public class OrderGoods { | ||
94 | * 关联订单id | 94 | * 关联订单id |
95 | */ | 95 | */ |
96 | private Long relationId; | 96 | private Long relationId; |
97 | + /** | ||
98 | + * 商品单位 | ||
99 | + */ | ||
100 | + private String productUnit; | ||
97 | 101 | ||
98 | public Integer getSalesMode() { | 102 | public Integer getSalesMode() { |
99 | return salesMode; | 103 | return salesMode; |
@@ -310,4 +314,12 @@ public class OrderGoods { | @@ -310,4 +314,12 @@ public class OrderGoods { | ||
310 | public void setRelationId(Long relationId) { | 314 | public void setRelationId(Long relationId) { |
311 | this.relationId = relationId; | 315 | this.relationId = relationId; |
312 | } | 316 | } |
317 | + | ||
318 | + public String getProductUnit() { | ||
319 | + return productUnit; | ||
320 | + } | ||
321 | + | ||
322 | + public void setProductUnit(String productUnit) { | ||
323 | + this.productUnit = productUnit; | ||
324 | + } | ||
313 | } | 325 | } |
314 | \ No newline at end of file | 326 | \ No newline at end of file |
etrade-order/src/main/java/com/diligrp/etrade/order/service/impl/OrderGoodsServiceImpl.java
@@ -185,7 +185,7 @@ public class OrderGoodsServiceImpl implements OrderGoodsService { | @@ -185,7 +185,7 @@ public class OrderGoodsServiceImpl implements OrderGoodsService { | ||
185 | waitCouponAmount = waitCouponAmount.subtract(couponAmount); | 185 | waitCouponAmount = waitCouponAmount.subtract(couponAmount); |
186 | } | 186 | } |
187 | } | 187 | } |
188 | - //配送情况增加计算运费 | 188 | + //TODO 配送情况增加计算运费 |
189 | if(buyerOrderDto.getAchieveType().equals(OrderAchieveType.SELLER_DELIVERY.getCodeInteger())){ | 189 | if(buyerOrderDto.getAchieveType().equals(OrderAchieveType.SELLER_DELIVERY.getCodeInteger())){ |
190 | allmount.add(buyerOrderDto.getTransportFee()); | 190 | allmount.add(buyerOrderDto.getTransportFee()); |
191 | } | 191 | } |
etrade-order/src/main/java/com/diligrp/etrade/order/type/BizNumberTypeEnum.java
@@ -12,6 +12,7 @@ public enum BizNumberTypeEnum { | @@ -12,6 +12,7 @@ public enum BizNumberTypeEnum { | ||
12 | HK("5503", "赊销回款"), | 12 | HK("5503", "赊销回款"), |
13 | ETRADE_TRADE("5502", "交易"), | 13 | ETRADE_TRADE("5502", "交易"), |
14 | ETRADE_TRADE_SELLER("5504", "卖方交易"), | 14 | ETRADE_TRADE_SELLER("5504", "卖方交易"), |
15 | + ETRADE_TRADE_TRANSPORT("5506", "交易运费"), | ||
15 | ETRADE_TRADE_BUYER("5505", "买方交易"); | 16 | ETRADE_TRADE_BUYER("5505", "买方交易"); |
16 | 17 | ||
17 | private String name; | 18 | private String name; |
etrade-order/src/main/java/com/diligrp/etrade/order/util/NumberTransform.java
@@ -4,13 +4,13 @@ import java.math.BigDecimal; | @@ -4,13 +4,13 @@ import java.math.BigDecimal; | ||
4 | 4 | ||
5 | public class NumberTransform { | 5 | public class NumberTransform { |
6 | /** 500 */ | 6 | /** 500 */ |
7 | - public static BigDecimal FIVE_HUNDERD = new BigDecimal(500); | 7 | + public static BigDecimal FIVE_HUNDERD = new BigDecimal(100); |
8 | 8 | ||
9 | /** 100 */ | 9 | /** 100 */ |
10 | public static BigDecimal ONE_HUNDERD = new BigDecimal(100); | 10 | public static BigDecimal ONE_HUNDERD = new BigDecimal(100); |
11 | 11 | ||
12 | /** 200 */ | 12 | /** 200 */ |
13 | - public static BigDecimal TWO_HUNDERD = new BigDecimal(200); | 13 | + public static BigDecimal TWO_HUNDERD = new BigDecimal(100); |
14 | 14 | ||
15 | /** 10 */ | 15 | /** 10 */ |
16 | public static BigDecimal TEN = new BigDecimal(10); | 16 | public static BigDecimal TEN = new BigDecimal(10); |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderGoodsMapper.xml
@@ -27,12 +27,13 @@ | @@ -27,12 +27,13 @@ | ||
27 | <result column="product_seller_fee_state" jdbcType="TINYINT" property="productSellerFeeState" /> | 27 | <result column="product_seller_fee_state" jdbcType="TINYINT" property="productSellerFeeState" /> |
28 | <result column="order_status" jdbcType="TINYINT" property="orderStatus" /> | 28 | <result column="order_status" jdbcType="TINYINT" property="orderStatus" /> |
29 | <result column="relation_id" jdbcType="BIGINT" property="relationId" /> | 29 | <result column="relation_id" jdbcType="BIGINT" property="relationId" /> |
30 | + <result column="product_unit" jdbcType="VARCHAR" property="productUnit" /> | ||
30 | </resultMap> | 31 | </resultMap> |
31 | <sql id="Base_Column_List"> | 32 | <sql id="Base_Column_List"> |
32 | id, market_id, order_id, order_code, product_id, product_code,product_category_id, product_name, product_price, | 33 | id, market_id, order_id, order_code, product_id, product_code,product_category_id, product_name, product_price, |
33 | product_total_price, product_weight, product_pieces, product_piece_weight, product_piece_price, | 34 | product_total_price, product_weight, product_pieces, product_piece_weight, product_piece_price, |
34 | product_trade_type,product_coupon_amount, product_img_url, `state`, created_time, modified_time, version,product_seller_fee | 35 | product_trade_type,product_coupon_amount, product_img_url, `state`, created_time, modified_time, version,product_seller_fee |
35 | - ,product_seller_fee_state,`code`,order_status,relation_id | 36 | + ,product_seller_fee_state,`code`,order_status,relation_id,product_unit |
36 | </sql> | 37 | </sql> |
37 | <insert id="saveBatch" useGeneratedKeys="true" keyProperty="id"> | 38 | <insert id="saveBatch" useGeneratedKeys="true" keyProperty="id"> |
38 | insert into order_goods (id, market_id, order_id, | 39 | insert into order_goods (id, market_id, order_id, |
@@ -40,7 +41,7 @@ | @@ -40,7 +41,7 @@ | ||
40 | product_name, product_price, product_total_price, | 41 | product_name, product_price, product_total_price, |
41 | product_weight, product_pieces, product_piece_weight, | 42 | product_weight, product_pieces, product_piece_weight, |
42 | product_piece_price,product_coupon_amount, product_trade_type, product_img_url, | 43 | product_piece_price,product_coupon_amount, product_trade_type, product_img_url, |
43 | - state, version,product_seller_fee,product_seller_fee_state,`code`,order_status,relation_id) | 44 | + state, version,product_seller_fee,product_seller_fee_state,`code`,order_status,relation_id,product_unit) |
44 | values | 45 | values |
45 | <foreach collection="list" item="goods" separator=","> | 46 | <foreach collection="list" item="goods" separator=","> |
46 | (#{goods.id,jdbcType=BIGINT}, #{goods.marketId,jdbcType=BIGINT}, #{goods.orderId,jdbcType=BIGINT}, | 47 | (#{goods.id,jdbcType=BIGINT}, #{goods.marketId,jdbcType=BIGINT}, #{goods.orderId,jdbcType=BIGINT}, |
@@ -48,7 +49,7 @@ | @@ -48,7 +49,7 @@ | ||
48 | #{goods.productName,jdbcType=VARCHAR}, #{goods.productPrice,jdbcType=BIGINT}, #{goods.productTotalPrice,jdbcType=BIGINT}, | 49 | #{goods.productName,jdbcType=VARCHAR}, #{goods.productPrice,jdbcType=BIGINT}, #{goods.productTotalPrice,jdbcType=BIGINT}, |
49 | #{goods.productWeight,jdbcType=BIGINT}, #{goods.productPieces,jdbcType=BIGINT}, #{goods.productPieceWeight,jdbcType=BIGINT}, | 50 | #{goods.productWeight,jdbcType=BIGINT}, #{goods.productPieces,jdbcType=BIGINT}, #{goods.productPieceWeight,jdbcType=BIGINT}, |
50 | #{goods.productPiecePrice,jdbcType=BIGINT},#{goods.productCouponAmount,jdbcType=BIGINT}, #{goods.productTradeType,jdbcType=TINYINT}, #{goods.productImgUrl,jdbcType=VARCHAR}, | 51 | #{goods.productPiecePrice,jdbcType=BIGINT},#{goods.productCouponAmount,jdbcType=BIGINT}, #{goods.productTradeType,jdbcType=TINYINT}, #{goods.productImgUrl,jdbcType=VARCHAR}, |
51 | - #{goods.state,jdbcType=TINYINT}, #{goods.version,jdbcType=INTEGER},#{goods.productSellerFee,jdbcType=BIGINT},#{goods.productSellerFeeState,jdbcType=TINYINT}, #{goods.code,jdbcType=VARCHAR},#{goods.orderStatus,jdbcType=TINYINT}, #{goods.relationId,jdbcType=BIGINT}) | 52 | + #{goods.state,jdbcType=TINYINT}, #{goods.version,jdbcType=INTEGER},#{goods.productSellerFee,jdbcType=BIGINT},#{goods.productSellerFeeState,jdbcType=TINYINT}, #{goods.code,jdbcType=VARCHAR},#{goods.orderStatus,jdbcType=TINYINT}, #{goods.relationId,jdbcType=BIGINT}, #{goods.productUnit,jdbcType=VARCHAR}) |
52 | </foreach> | 53 | </foreach> |
53 | </insert> | 54 | </insert> |
54 | <update id="updateOrderGoodsState"> | 55 | <update id="updateOrderGoodsState"> |
@@ -67,11 +68,11 @@ | @@ -67,11 +68,11 @@ | ||
67 | product_code, | 68 | product_code, |
68 | product_category_id, | 69 | product_category_id, |
69 | product_name, | 70 | product_name, |
70 | - convert(product_price, decimal(20,2))/200 as product_price, | 71 | + convert(product_price, decimal(20,2))/100 as product_price, |
71 | convert(product_total_price, decimal(20,2))/100 as product_total_price, | 72 | convert(product_total_price, decimal(20,2))/100 as product_total_price, |
72 | - convert(product_weight, decimal(20,2))/500 as product_weight, | 73 | + convert(product_weight, decimal(20,2))/100 as product_weight, |
73 | convert(product_pieces, decimal(20,2))/100 as product_pieces, | 74 | convert(product_pieces, decimal(20,2))/100 as product_pieces, |
74 | - convert(product_piece_weight, decimal(20,2))/500 as product_piece_weight, | 75 | + convert(product_piece_weight, decimal(20,2))/100 as product_piece_weight, |
75 | convert(product_piece_price, decimal(20,2))/100 as product_piece_price, | 76 | convert(product_piece_price, decimal(20,2))/100 as product_piece_price, |
76 | convert(product_coupon_amount, decimal(20,2))/100 as coupon_amount, | 77 | convert(product_coupon_amount, decimal(20,2))/100 as coupon_amount, |
77 | product_trade_type, | 78 | product_trade_type, |
@@ -82,7 +83,8 @@ | @@ -82,7 +83,8 @@ | ||
82 | version, | 83 | version, |
83 | convert(product_seller_fee, decimal(20,2))/100 as product_seller_fee, | 84 | convert(product_seller_fee, decimal(20,2))/100 as product_seller_fee, |
84 | product_seller_fee_state, | 85 | product_seller_fee_state, |
85 | - `code` | 86 | + `code`, |
87 | + product_unit | ||
86 | from order_goods | 88 | from order_goods |
87 | where order_id = #{orderId,jdbcType=BIGINT} and `state` = #{state} | 89 | where order_id = #{orderId,jdbcType=BIGINT} and `state` = #{state} |
88 | </select> | 90 | </select> |
@@ -110,9 +112,9 @@ | @@ -110,9 +112,9 @@ | ||
110 | product_name, | 112 | product_name, |
111 | convert(product_price, decimal(20,2))/100 as product_price, | 113 | convert(product_price, decimal(20,2))/100 as product_price, |
112 | convert(product_total_price, decimal(20,2))/100 as product_total_price, | 114 | convert(product_total_price, decimal(20,2))/100 as product_total_price, |
113 | - convert(product_weight, decimal(20,2))/1000 as product_weight, | 115 | + convert(product_weight, decimal(20,2))/100 as product_weight, |
114 | convert(product_pieces, decimal(20,2))/100 as product_pieces, | 116 | convert(product_pieces, decimal(20,2))/100 as product_pieces, |
115 | - convert(product_piece_weight, decimal(20,2))/1000 as product_piece_weight, | 117 | + convert(product_piece_weight, decimal(20,2))/100 as product_piece_weight, |
116 | convert(product_piece_price, decimal(20,2))/100 as product_piece_price, | 118 | convert(product_piece_price, decimal(20,2))/100 as product_piece_price, |
117 | convert(product_coupon_amount, decimal(20,2))/100 as coupon_amount, | 119 | convert(product_coupon_amount, decimal(20,2))/100 as coupon_amount, |
118 | product_trade_type, | 120 | product_trade_type, |
@@ -123,7 +125,8 @@ | @@ -123,7 +125,8 @@ | ||
123 | version, | 125 | version, |
124 | convert(product_seller_fee, decimal(20,2))/100 as product_seller_fee, | 126 | convert(product_seller_fee, decimal(20,2))/100 as product_seller_fee, |
125 | product_seller_fee_state, | 127 | product_seller_fee_state, |
126 | - `code` | 128 | + `code`, |
129 | + product_unit | ||
127 | from order_goods | 130 | from order_goods |
128 | where order_id = #{orderId,jdbcType=BIGINT} and `state` = #{state} | 131 | where order_id = #{orderId,jdbcType=BIGINT} and `state` = #{state} |
129 | </select> | 132 | </select> |
@@ -139,9 +142,9 @@ | @@ -139,9 +142,9 @@ | ||
139 | product_name, | 142 | product_name, |
140 | convert(product_price, decimal(20,2))/100 as product_price, | 143 | convert(product_price, decimal(20,2))/100 as product_price, |
141 | convert(product_total_price, decimal(20,2))/100 as product_total_price, | 144 | convert(product_total_price, decimal(20,2))/100 as product_total_price, |
142 | - convert(product_weight, decimal(20,2))/1000 as product_weight, | 145 | + convert(product_weight, decimal(20,2))/100 as product_weight, |
143 | convert(product_pieces, decimal(20,2))/100 as product_pieces, | 146 | convert(product_pieces, decimal(20,2))/100 as product_pieces, |
144 | - convert(product_piece_weight, decimal(20,2))/1000 as product_piece_weight, | 147 | + convert(product_piece_weight, decimal(20,2))/100 as product_piece_weight, |
145 | convert(product_piece_price, decimal(20,2))/100 as product_piece_price, | 148 | convert(product_piece_price, decimal(20,2))/100 as product_piece_price, |
146 | convert(product_coupon_amount, decimal(20,2))/100 as coupon_amount, | 149 | convert(product_coupon_amount, decimal(20,2))/100 as coupon_amount, |
147 | product_trade_type, | 150 | product_trade_type, |
@@ -153,6 +156,7 @@ | @@ -153,6 +156,7 @@ | ||
153 | convert(product_seller_fee, decimal(20,2))/100 as product_seller_fee, | 156 | convert(product_seller_fee, decimal(20,2))/100 as product_seller_fee, |
154 | product_seller_fee_state, | 157 | product_seller_fee_state, |
155 | `code`, | 158 | `code`, |
159 | + product_unit, | ||
156 | #{shopId} shop_id, | 160 | #{shopId} shop_id, |
157 | #{shopCustomerId} shop_customer_id | 161 | #{shopCustomerId} shop_customer_id |
158 | from order_goods | 162 | from order_goods |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderMapper.xml
@@ -58,6 +58,7 @@ | @@ -58,6 +58,7 @@ | ||
58 | <result column="achieve_type" jdbcType="INTEGER" property="achieveType" /> | 58 | <result column="achieve_type" jdbcType="INTEGER" property="achieveType" /> |
59 | <result column="achieve_address" jdbcType="VARCHAR" property="achieveAddress" /> | 59 | <result column="achieve_address" jdbcType="VARCHAR" property="achieveAddress" /> |
60 | <result column="achieve_state" jdbcType="INTEGER" property="achieveState" /> | 60 | <result column="achieve_state" jdbcType="INTEGER" property="achieveState" /> |
61 | + <result column="transport_fee" jdbcType="BIGINT" property="transportFee" /> | ||
61 | </resultMap> | 62 | </resultMap> |
62 | <sql id="Base_Column_List"> | 63 | <sql id="Base_Column_List"> |
63 | id, code, mapping_code, market_id, buyer_code, buyer_id,buyer_store_customer_id, buyer_name, buyer_account_id, | 64 | id, code, mapping_code, market_id, buyer_code, buyer_id,buyer_store_customer_id, buyer_name, buyer_account_id, |
@@ -67,7 +68,7 @@ | @@ -67,7 +68,7 @@ | ||
67 | pay_time, order_state, `state`, version, creater_id, creater, created_time, modifier_id, | 68 | pay_time, order_state, `state`, version, creater_id, creater, created_time, modifier_id, |
68 | modifier, modified_time, verify_ids, verifier,verify_state, verifier_time, cancel_id, cancel_name, | 69 | modifier, modified_time, verify_ids, verifier,verify_state, verifier_time, cancel_id, cancel_name, |
69 | cancel_time, out_time,`source`,totle_seller_fee,district_id,district_name,sub_district_id,sub_district_name,location | 70 | cancel_time, out_time,`source`,totle_seller_fee,district_id,district_name,sub_district_id,sub_district_name,location |
70 | - ,order_status,relation_id,achieve_type,achieve_address,achieve_state | 71 | + ,order_status,relation_id,achieve_type,achieve_address,achieve_state,transport_fee |
71 | </sql> | 72 | </sql> |
72 | <sql id="Dto_Column_List"> | 73 | <sql id="Dto_Column_List"> |
73 | id, | 74 | id, |
@@ -94,7 +95,7 @@ | @@ -94,7 +95,7 @@ | ||
94 | convert(totle_pay_amount, decimal(20,2))/100 as totle_pay_amount, | 95 | convert(totle_pay_amount, decimal(20,2))/100 as totle_pay_amount, |
95 | convert(totle_paid_amount, decimal(20,2))/100 as totle_paid_amount, | 96 | convert(totle_paid_amount, decimal(20,2))/100 as totle_paid_amount, |
96 | convert(totle_discount, decimal(20,2))/100 as totle_discount, | 97 | convert(totle_discount, decimal(20,2))/100 as totle_discount, |
97 | - convert(totle_weight, decimal(20,2))/500 as totle_weight, | 98 | + convert(totle_weight, decimal(20,2))/100 as totle_weight, |
98 | order_type, | 99 | order_type, |
99 | pay_state, | 100 | pay_state, |
100 | pay_time, | 101 | pay_time, |
@@ -124,7 +125,8 @@ | @@ -124,7 +125,8 @@ | ||
124 | location, | 125 | location, |
125 | achieve_type, | 126 | achieve_type, |
126 | achieve_address, | 127 | achieve_address, |
127 | - achieve_state | 128 | + achieve_state, |
129 | + transport_fee | ||
128 | </sql> | 130 | </sql> |
129 | <insert id="saveOrder" parameterType="com.diligrp.etrade.order.model.Order" useGeneratedKeys="true" keyProperty="id" > | 131 | <insert id="saveOrder" parameterType="com.diligrp.etrade.order.model.Order" useGeneratedKeys="true" keyProperty="id" > |
130 | insert into `order` (id, code, mapping_code, | 132 | insert into `order` (id, code, mapping_code, |
@@ -143,7 +145,7 @@ | @@ -143,7 +145,7 @@ | ||
143 | cancel_id, cancel_name, cancel_time, | 145 | cancel_id, cancel_name, cancel_time, |
144 | out_time,`source`,totle_seller_fee, | 146 | out_time,`source`,totle_seller_fee, |
145 | district_id,district_name,sub_district_id,sub_district_name,location | 147 | district_id,district_name,sub_district_id,sub_district_name,location |
146 | - ,order_status,relation_id,achieve_type,achieve_address,achieve_state) | 148 | + ,order_status,relation_id,achieve_type,achieve_address,achieve_state,transport_fee) |
147 | values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{mappingCode,jdbcType=VARCHAR}, | 149 | values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{mappingCode,jdbcType=VARCHAR}, |
148 | #{marketId,jdbcType=BIGINT}, #{buyerCode,jdbcType=VARCHAR}, #{buyerId,jdbcType=BIGINT},#{buyerStoreCustomerId,jdbcType=BIGINT}, | 150 | #{marketId,jdbcType=BIGINT}, #{buyerCode,jdbcType=VARCHAR}, #{buyerId,jdbcType=BIGINT},#{buyerStoreCustomerId,jdbcType=BIGINT}, |
149 | #{buyerName,jdbcType=VARCHAR}, #{buyerAccountId,jdbcType=BIGINT}, #{buyerCardNo,jdbcType=VARCHAR}, | 151 | #{buyerName,jdbcType=VARCHAR}, #{buyerAccountId,jdbcType=BIGINT}, #{buyerCardNo,jdbcType=VARCHAR}, |
@@ -160,7 +162,7 @@ | @@ -160,7 +162,7 @@ | ||
160 | #{cancelId,jdbcType=BIGINT}, #{cancelName,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, | 162 | #{cancelId,jdbcType=BIGINT}, #{cancelName,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, |
161 | #{outTime,jdbcType=TIMESTAMP},#{source,jdbcType=TINYINT}, #{totleSellerFee,jdbcType=BIGINT}, | 163 | #{outTime,jdbcType=TIMESTAMP},#{source,jdbcType=TINYINT}, #{totleSellerFee,jdbcType=BIGINT}, |
162 | #{districtId,jdbcType=BIGINT},#{districtName},#{subDistrictId,jdbcType=BIGINT},#{subDistrictName},#{location} | 164 | #{districtId,jdbcType=BIGINT},#{districtName},#{subDistrictId,jdbcType=BIGINT},#{subDistrictName},#{location} |
163 | - ,#{orderStatus,jdbcType=TINYINT}, #{relationId,jdbcType=BIGINT}, #{achieveType,jdbcType=TINYINT},#{achieveAddress,jdbcType=VARCHAR},#{achieveState,jdbcType=TINYINT}) | 165 | + ,#{orderStatus,jdbcType=TINYINT}, #{relationId,jdbcType=BIGINT}, #{achieveType,jdbcType=TINYINT},#{achieveAddress,jdbcType=VARCHAR},#{achieveState,jdbcType=TINYINT},#{transportFee,jdbcType=VARCHAR}) |
164 | </insert> | 166 | </insert> |
165 | <update id="updateOrderById" parameterType="com.diligrp.etrade.order.model.Order"> | 167 | <update id="updateOrderById" parameterType="com.diligrp.etrade.order.model.Order"> |
166 | update `order` | 168 | update `order` |
@@ -212,7 +214,8 @@ | @@ -212,7 +214,8 @@ | ||
212 | location = #{location}, | 214 | location = #{location}, |
213 | achieve_type = #{achieveType,jdbcType=TINYINT}, | 215 | achieve_type = #{achieveType,jdbcType=TINYINT}, |
214 | achieve_address = #{achieveAddress,jdbcType=VARCHAR}, | 216 | achieve_address = #{achieveAddress,jdbcType=VARCHAR}, |
215 | - achieve_state = #{achieveState,jdbcType=TINYINT} | 217 | + achieve_state = #{achieveState,jdbcType=TINYINT}, |
218 | + transport_fee = #{transportFee,jdbcType=VARCHAR} | ||
216 | where id = #{id,jdbcType=BIGINT} and version = #{version,jdbcType=BIGINT} | 219 | where id = #{id,jdbcType=BIGINT} and version = #{version,jdbcType=BIGINT} |
217 | </update> | 220 | </update> |
218 | 221 | ||
@@ -369,6 +372,9 @@ | @@ -369,6 +372,9 @@ | ||
369 | <if test="achieveState != null"> | 372 | <if test="achieveState != null"> |
370 | achieve_state = #{achieveState,jdbcType=TINYINT}, | 373 | achieve_state = #{achieveState,jdbcType=TINYINT}, |
371 | </if> | 374 | </if> |
375 | + <if test="transportFee != null"> | ||
376 | + transport_fee = #{transportFee,jdbcType=VARCHAR}, | ||
377 | + </if> | ||
372 | </set> | 378 | </set> |
373 | where id = #{id,jdbcType=BIGINT} and version = #{version,jdbcType=INTEGER} | 379 | where id = #{id,jdbcType=BIGINT} and version = #{version,jdbcType=INTEGER} |
374 | </update> | 380 | </update> |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderPaymentMapper.xml
@@ -34,20 +34,21 @@ | @@ -34,20 +34,21 @@ | ||
34 | <result column="seller_fee_state" jdbcType="VARCHAR" property="sellerFeeState" /> | 34 | <result column="seller_fee_state" jdbcType="VARCHAR" property="sellerFeeState" /> |
35 | <result column="order_status" jdbcType="TINYINT" property="orderStatus" /> | 35 | <result column="order_status" jdbcType="TINYINT" property="orderStatus" /> |
36 | <result column="relation_id" jdbcType="BIGINT" property="relationId" /> | 36 | <result column="relation_id" jdbcType="BIGINT" property="relationId" /> |
37 | + <result column="transport_fee" jdbcType="BIGINT" property="transportFee" /> | ||
37 | </resultMap> | 38 | </resultMap> |
38 | <sql id="Base_Column_List"> | 39 | <sql id="Base_Column_List"> |
39 | id, `code`, order_id, order_code,market_id, pay_amount, pay_discount, payer_customer_id, payer_store_customer_id, | 40 | id, `code`, order_id, order_code,market_id, pay_amount, pay_discount, payer_customer_id, payer_store_customer_id, |
40 | payer_customer_name, payer_card_no, payer_account_id, payer_fund_account_id, payee_shop_id, | 41 | payer_customer_name, payer_card_no, payer_account_id, payer_fund_account_id, payee_shop_id, |
41 | payee_shop_name, payee_card_no, payee_account_id, payee_fund_account_id, payee_seller_id, | 42 | payee_shop_name, payee_card_no, payee_account_id, payee_fund_account_id, payee_seller_id, |
42 | payee_seller_name, pay_time, pay_mode, pay_channel, version, created_time, modified_time, | 43 | payee_seller_name, pay_time, pay_mode, pay_channel, version, created_time, modified_time, |
43 | - `state`, trade_id,totle_seller_fee,seller_fee_state,order_status,relation_id | 44 | + `state`, trade_id,totle_seller_fee,seller_fee_state,order_status,relation_id,transport_fee |
44 | </sql> | 45 | </sql> |
45 | <sql id="VO_Column_List"> | 46 | <sql id="VO_Column_List"> |
46 | id, `code`, order_id, order_code, convert(pay_amount, decimal(20,2))/100 as pay_amount, convert(pay_discount, decimal(20,2))/100 as pay_discount, payer_customer_id, payer_store_customer_id, | 47 | id, `code`, order_id, order_code, convert(pay_amount, decimal(20,2))/100 as pay_amount, convert(pay_discount, decimal(20,2))/100 as pay_discount, payer_customer_id, payer_store_customer_id, |
47 | payer_customer_name, payer_card_no, payer_account_id, payer_fund_account_id, payee_shop_id, | 48 | payer_customer_name, payer_card_no, payer_account_id, payer_fund_account_id, payee_shop_id, |
48 | payee_shop_name, payee_card_no, payee_account_id, payee_fund_account_id, payee_seller_id, | 49 | payee_shop_name, payee_card_no, payee_account_id, payee_fund_account_id, payee_seller_id, |
49 | payee_seller_name, pay_time, pay_mode, pay_channel, version, created_time, modified_time, | 50 | payee_seller_name, pay_time, pay_mode, pay_channel, version, created_time, modified_time, |
50 | - `state`, trade_id,convert(totle_seller_fee, decimal(20,2))/100 as totle_seller_fee,seller_fee_state | 51 | + `state`, trade_id,convert(totle_seller_fee, decimal(20,2))/100 as totle_seller_fee,seller_fee_state,transport_fee |
51 | </sql> | 52 | </sql> |
52 | <insert id="save" parameterType="com.diligrp.etrade.order.model.OrderPayment" useGeneratedKeys="true" keyProperty="id" > | 53 | <insert id="save" parameterType="com.diligrp.etrade.order.model.OrderPayment" useGeneratedKeys="true" keyProperty="id" > |
53 | insert into order_payment (id, code, order_id,market_id, | 54 | insert into order_payment (id, code, order_id,market_id, |
@@ -59,6 +60,7 @@ | @@ -59,6 +60,7 @@ | ||
59 | payee_seller_name, pay_time, pay_mode, | 60 | payee_seller_name, pay_time, pay_mode, |
60 | pay_channel, version, state, trade_id, | 61 | pay_channel, version, state, trade_id, |
61 | totle_seller_fee,seller_fee_state,order_status,relation_id | 62 | totle_seller_fee,seller_fee_state,order_status,relation_id |
63 | + ,transport_fee | ||
62 | ) | 64 | ) |
63 | values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{orderId,jdbcType=INTEGER},#{marketId,jdbcType=BIGINT}, | 65 | values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{orderId,jdbcType=INTEGER},#{marketId,jdbcType=BIGINT}, |
64 | #{orderCode,jdbcType=VARCHAR}, #{payAmount,jdbcType=BIGINT}, #{payDiscount,jdbcType=BIGINT}, | 66 | #{orderCode,jdbcType=VARCHAR}, #{payAmount,jdbcType=BIGINT}, #{payDiscount,jdbcType=BIGINT}, |
@@ -68,7 +70,8 @@ | @@ -68,7 +70,8 @@ | ||
68 | #{payeeAccountId,jdbcType=BIGINT}, #{payeeFundAccountId,jdbcType=BIGINT}, #{payeeSellerId,jdbcType=BIGINT}, | 70 | #{payeeAccountId,jdbcType=BIGINT}, #{payeeFundAccountId,jdbcType=BIGINT}, #{payeeSellerId,jdbcType=BIGINT}, |
69 | #{payeeSellerName,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{payMode,jdbcType=INTEGER}, | 71 | #{payeeSellerName,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{payMode,jdbcType=INTEGER}, |
70 | #{payChannel,jdbcType=INTEGER}, #{version,jdbcType=INTEGER}, #{state,jdbcType=TINYINT}, #{tradeId,jdbcType=VARCHAR}, | 72 | #{payChannel,jdbcType=INTEGER}, #{version,jdbcType=INTEGER}, #{state,jdbcType=TINYINT}, #{tradeId,jdbcType=VARCHAR}, |
71 | - #{totleSellerFee,jdbcType=BIGINT}, #{sellerFeeState,jdbcType=TINYINT},#{orderStatus,jdbcType=TINYINT}, #{relationId,jdbcType=BIGINT}) | 73 | + #{totleSellerFee,jdbcType=BIGINT}, #{sellerFeeState,jdbcType=TINYINT},#{orderStatus,jdbcType=TINYINT}, #{relationId,jdbcType=BIGINT} |
74 | + ,#{transportFee,jdbcType=BIGINT}) | ||
72 | </insert> | 75 | </insert> |
73 | <insert id="saveBatch" useGeneratedKeys="true" keyProperty="id"> | 76 | <insert id="saveBatch" useGeneratedKeys="true" keyProperty="id"> |
74 | insert into order_payment (id, code, order_id,market_id, | 77 | insert into order_payment (id, code, order_id,market_id, |
@@ -80,6 +83,7 @@ | @@ -80,6 +83,7 @@ | ||
80 | payee_seller_name, pay_time, pay_mode, | 83 | payee_seller_name, pay_time, pay_mode, |
81 | pay_channel, version, state, trade_id, | 84 | pay_channel, version, state, trade_id, |
82 | totle_seller_fee,seller_fee_state,order_status,relation_id | 85 | totle_seller_fee,seller_fee_state,order_status,relation_id |
86 | + ,transport_fee | ||
83 | ) | 87 | ) |
84 | values | 88 | values |
85 | <foreach collection="list" item="payment" separator=","> | 89 | <foreach collection="list" item="payment" separator=","> |
@@ -91,7 +95,8 @@ | @@ -91,7 +95,8 @@ | ||
91 | #{payment.payeeAccountId,jdbcType=BIGINT}, #{payment.payeeFundAccountId,jdbcType=BIGINT}, #{payment.payeeSellerId,jdbcType=BIGINT}, | 95 | #{payment.payeeAccountId,jdbcType=BIGINT}, #{payment.payeeFundAccountId,jdbcType=BIGINT}, #{payment.payeeSellerId,jdbcType=BIGINT}, |
92 | #{payment.payeeSellerName,jdbcType=VARCHAR}, #{payment.payTime,jdbcType=TIMESTAMP}, #{payment.payMode,jdbcType=INTEGER}, | 96 | #{payment.payeeSellerName,jdbcType=VARCHAR}, #{payment.payTime,jdbcType=TIMESTAMP}, #{payment.payMode,jdbcType=INTEGER}, |
93 | #{payment.payChannel,jdbcType=INTEGER}, #{payment.version,jdbcType=INTEGER}, #{payment.state,jdbcType=TINYINT}, #{payment.tradeId,jdbcType=VARCHAR}, | 97 | #{payment.payChannel,jdbcType=INTEGER}, #{payment.version,jdbcType=INTEGER}, #{payment.state,jdbcType=TINYINT}, #{payment.tradeId,jdbcType=VARCHAR}, |
94 | - #{payment.totleSellerFee,jdbcType=BIGINT}, #{payment.sellerFeeState,jdbcType=TINYINT},#{payment.orderStatus,jdbcType=TINYINT}, #{payment.relationId,jdbcType=BIGINT}) | 98 | + #{payment.totleSellerFee,jdbcType=BIGINT}, #{payment.sellerFeeState,jdbcType=TINYINT},#{payment.orderStatus,jdbcType=TINYINT}, #{payment.relationId,jdbcType=BIGINT} |
99 | + ,#{payment.transportFee,jdbcType=BIGINT}) | ||
95 | </foreach> | 100 | </foreach> |
96 | </insert> | 101 | </insert> |
97 | <update id="updatepayment" parameterType="com.diligrp.etrade.order.model.OrderPayment"> | 102 | <update id="updatepayment" parameterType="com.diligrp.etrade.order.model.OrderPayment"> |
@@ -120,7 +125,8 @@ | @@ -120,7 +125,8 @@ | ||
120 | state = #{state,jdbcType=TINYINT}, | 125 | state = #{state,jdbcType=TINYINT}, |
121 | trade_id = #{tradeId,jdbcType=VARCHAR}, | 126 | trade_id = #{tradeId,jdbcType=VARCHAR}, |
122 | totle_seller_fee = #{totleSellerFee,jdbcType=BIGINT}, | 127 | totle_seller_fee = #{totleSellerFee,jdbcType=BIGINT}, |
123 | - seller_fee_state = #{sellerFeeState,jdbcType=TINYINT} | 128 | + seller_fee_state = #{sellerFeeState,jdbcType=TINYINT}, |
129 | + transport_fee = #{transportFee,jdbcType=BIGINT} | ||
124 | where id = #{id,jdbcType=BIGINT} | 130 | where id = #{id,jdbcType=BIGINT} |
125 | </update> | 131 | </update> |
126 | <update id="finishPayUpdata" > | 132 | <update id="finishPayUpdata" > |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderQueryBuyerMapper.xml
@@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
49 | <result column="source" jdbcType="TIMESTAMP" property="source" /> | 49 | <result column="source" jdbcType="TIMESTAMP" property="source" /> |
50 | <result column="achieve_type" jdbcType="TIMESTAMP" property="achieveType" /> | 50 | <result column="achieve_type" jdbcType="TIMESTAMP" property="achieveType" /> |
51 | <result column="achieve_state" jdbcType="TIMESTAMP" property="achieveState" /> | 51 | <result column="achieve_state" jdbcType="TIMESTAMP" property="achieveState" /> |
52 | + <result column="transport_fee" jdbcType="BIGINT" property="transportFee" /> | ||
52 | <collection property="productList" ofType="com.diligrp.etrade.order.domain.ProductDto"> | 53 | <collection property="productList" ofType="com.diligrp.etrade.order.domain.ProductDto"> |
53 | <result property="productId" column="id"/> | 54 | <result property="productId" column="id"/> |
54 | <result property="productImgUrl" column="product_img_url"/> | 55 | <result property="productImgUrl" column="product_img_url"/> |
@@ -107,7 +108,7 @@ | @@ -107,7 +108,7 @@ | ||
107 | convert(ord.totle_pay_amount, decimal(20,2))/100 as totle_pay_amount, | 108 | convert(ord.totle_pay_amount, decimal(20,2))/100 as totle_pay_amount, |
108 | convert(ord.totle_paid_amount, decimal(20,2))/100 as totle_paid_amount, | 109 | convert(ord.totle_paid_amount, decimal(20,2))/100 as totle_paid_amount, |
109 | convert(ord.totle_discount, decimal(20,2))/100 as totle_discount, | 110 | convert(ord.totle_discount, decimal(20,2))/100 as totle_discount, |
110 | - convert(ord.totle_weight, decimal(20,2))/500 as totle_weight, | 111 | + convert(ord.totle_weight, decimal(20,2))/100 as totle_weight, |
111 | ord.order_type as order_type, | 112 | ord.order_type as order_type, |
112 | ord.pay_state as pay_state, | 113 | ord.pay_state as pay_state, |
113 | ord.pay_time as pay_time, | 114 | ord.pay_time as pay_time, |
@@ -130,7 +131,9 @@ | @@ -130,7 +131,9 @@ | ||
130 | ord.out_time as out_time, | 131 | ord.out_time as out_time, |
131 | ord.`source` as `source`, | 132 | ord.`source` as `source`, |
132 | ord.achieve_type as achieve_type, | 133 | ord.achieve_type as achieve_type, |
133 | - ord.achieve_state as achieve_state | 134 | + ord.achieve_state as achieve_state, |
135 | + ord.transport_fee as transport_fee | ||
136 | + | ||
134 | </sql> | 137 | </sql> |
135 | <select id="queryOrderStateNumberBuyer" resultType="com.diligrp.etrade.order.domain.OrderStateNumberDto" | 138 | <select id="queryOrderStateNumberBuyer" resultType="com.diligrp.etrade.order.domain.OrderStateNumberDto" |
136 | parameterType="com.diligrp.etrade.order.domain.OrderQueryBuyerDto"> | 139 | parameterType="com.diligrp.etrade.order.domain.OrderQueryBuyerDto"> |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderQueryMapper.xml
@@ -54,6 +54,7 @@ | @@ -54,6 +54,7 @@ | ||
54 | <result column="relation_id" jdbcType="DECIMAL" property="relationId" /> | 54 | <result column="relation_id" jdbcType="DECIMAL" property="relationId" /> |
55 | <result column="achieve_type" jdbcType="DECIMAL" property="achieveType" /> | 55 | <result column="achieve_type" jdbcType="DECIMAL" property="achieveType" /> |
56 | <result column="achieve_state" jdbcType="DECIMAL" property="achieveState" /> | 56 | <result column="achieve_state" jdbcType="DECIMAL" property="achieveState" /> |
57 | + <result column="transport_fee" jdbcType="BIGINT" property="transportFee" /> | ||
57 | </resultMap> | 58 | </resultMap> |
58 | <sql id="Base_Column_List"> | 59 | <sql id="Base_Column_List"> |
59 | id, `code`, mapping_code, market_id, buyer_code, buyer_id,buyer_store_customer_id, buyer_name, buyer_account_id, | 60 | id, `code`, mapping_code, market_id, buyer_code, buyer_id,buyer_store_customer_id, buyer_name, buyer_account_id, |
@@ -119,7 +120,8 @@ | @@ -119,7 +120,8 @@ | ||
119 | `relation_id`, | 120 | `relation_id`, |
120 | location, | 121 | location, |
121 | achieve_type, | 122 | achieve_type, |
122 | - achieve_state | 123 | + achieve_state, |
124 | + transport_fee | ||
123 | </sql> | 125 | </sql> |
124 | <select id="queryOrderStateNumber" resultType="com.diligrp.etrade.order.domain.OrderStateNumberDto" | 126 | <select id="queryOrderStateNumber" resultType="com.diligrp.etrade.order.domain.OrderStateNumberDto" |
125 | parameterType="com.diligrp.etrade.order.domain.OrderQueryDto"> | 127 | parameterType="com.diligrp.etrade.order.domain.OrderQueryDto"> |
@@ -210,6 +212,7 @@ | @@ -210,6 +212,7 @@ | ||
210 | opa.pay_channel as pay_channel, | 212 | opa.pay_channel as pay_channel, |
211 | ord.achieve_type as achieve_type, | 213 | ord.achieve_type as achieve_type, |
212 | ord.achieve_state as achieve_state, | 214 | ord.achieve_state as achieve_state, |
215 | + ord.transport_fee as transport_fee, | ||
213 | (CASE WHEN opa.payee_seller_name IS NULL OR opa.payee_seller_name = '' THEN ord.shop_customer_name ELSE opa.payee_seller_name END) AS payee_seller_name | 216 | (CASE WHEN opa.payee_seller_name IS NULL OR opa.payee_seller_name = '' THEN ord.shop_customer_name ELSE opa.payee_seller_name END) AS payee_seller_name |
214 | from `order` ord | 217 | from `order` ord |
215 | left join order_payment opa on opa.order_id = ord.id and opa.`state` = 2 | 218 | left join order_payment opa on opa.order_id = ord.id and opa.`state` = 2 |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderQuerySellerMapper.xml
@@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
49 | <result column="source" jdbcType="TINYINT" property="source" /> | 49 | <result column="source" jdbcType="TINYINT" property="source" /> |
50 | <result column="achieve_type" jdbcType="TINYINT" property="achieveType" /> | 50 | <result column="achieve_type" jdbcType="TINYINT" property="achieveType" /> |
51 | <result column="achieve_state" jdbcType="TINYINT" property="achieveState" /> | 51 | <result column="achieve_state" jdbcType="TINYINT" property="achieveState" /> |
52 | + <result column="transport_fee" jdbcType="BIGINT" property="transportFee" /> | ||
52 | <collection property="productList" ofType="com.diligrp.etrade.order.domain.ProductDto"> | 53 | <collection property="productList" ofType="com.diligrp.etrade.order.domain.ProductDto"> |
53 | <result property="productId" column="id"/> | 54 | <result property="productId" column="id"/> |
54 | <result property="productImgUrl" column="product_img_url"/> | 55 | <result property="productImgUrl" column="product_img_url"/> |
@@ -89,7 +90,7 @@ | @@ -89,7 +90,7 @@ | ||
89 | convert(ord.totle_pay_amount, decimal(20,2))/100 as totle_pay_amount, | 90 | convert(ord.totle_pay_amount, decimal(20,2))/100 as totle_pay_amount, |
90 | convert(ord.totle_paid_amount, decimal(20,2))/100 as totle_paid_amount, | 91 | convert(ord.totle_paid_amount, decimal(20,2))/100 as totle_paid_amount, |
91 | convert(ord.totle_discount, decimal(20,2))/100 as totle_discount, | 92 | convert(ord.totle_discount, decimal(20,2))/100 as totle_discount, |
92 | - convert(ord.totle_weight, decimal(20,2))/500 as totle_weight, | 93 | + convert(ord.totle_weight, decimal(20,2))/100 as totle_weight, |
93 | ord.order_type, | 94 | ord.order_type, |
94 | ord.pay_state, | 95 | ord.pay_state, |
95 | ord.pay_time, | 96 | ord.pay_time, |
@@ -112,7 +113,8 @@ | @@ -112,7 +113,8 @@ | ||
112 | ord.out_time, | 113 | ord.out_time, |
113 | ord.achieve_type, | 114 | ord.achieve_type, |
114 | ord.achieve_state, | 115 | ord.achieve_state, |
115 | - ord.`source` | 116 | + ord.`source`, |
117 | + ord.transport_fee | ||
116 | </sql> | 118 | </sql> |
117 | <!--<update id="updateOrderById" parameterType="com.diligrp.etrade.order.model.Order"> | 119 | <!--<update id="updateOrderById" parameterType="com.diligrp.etrade.order.model.Order"> |
118 | update `order` | 120 | update `order` |