菠萝派接口-订单下载,修改子订单优惠金额不正确
正在显示
4 个修改的文件
包含
27 行增加
和
3 行删除
... | @@ -257,7 +257,7 @@ | ... | @@ -257,7 +257,7 @@ |
257 | where do.main_order_code=#{mainOrderCode} AND do.delete_flag=1 and do.order_from=#{orderFrom} | 257 | where do.main_order_code=#{mainOrderCode} AND do.delete_flag=1 and do.order_from=#{orderFrom} |
258 | </select> | 258 | </select> |
259 | <select id="getIMOrderDetailByOrderCode" parameterType="map" resultMap="oneIMOrderDetailColumn"> | 259 | <select id="getIMOrderDetailByOrderCode" parameterType="map" resultMap="oneIMOrderDetailColumn"> |
260 | select <include refid="Select_DoingOrder_column"/>,do.transaction_id | 260 | select <include refid="Select_DoingOrder_column"/>,do.transaction_id,do1.deduction_line_coupon_price,do1.deduction_line_vb_price |
261 | 261 | ||
262 | from ${doingOrderTable} do left join ${doingOrder1Table} do1 | 262 | from ${doingOrderTable} do left join ${doingOrder1Table} do1 |
263 | on do.order_id=do1.order_id | 263 | on do.order_id=do1.order_id |
... | @@ -384,6 +384,8 @@ | ... | @@ -384,6 +384,8 @@ |
384 | <result column="discount_line_price" property="discountLinePrice" /> | 384 | <result column="discount_line_price" property="discountLinePrice" /> |
385 | <result column="deduction_product_vb" property="deductionProductVb" /> | 385 | <result column="deduction_product_vb" property="deductionProductVb" /> |
386 | <result column="deduction_line_vb" property="deductionLineVb" /> | 386 | <result column="deduction_line_vb" property="deductionLineVb" /> |
387 | <result column="deduction_line_coupon_price" property="deductionLineCouponPrice" /> | ||
388 | <result column="deduction_line_vb_price" property="deductionLineVbPrice" /> | ||
387 | <result column="refund_status" property="refundStatus" /> | 389 | <result column="refund_status" property="refundStatus" /> |
388 | <result column="sort_index" property="sortIndex" /> | 390 | <result column="sort_index" property="sortIndex" /> |
389 | <result column="product_share_percentage" property="productSharePercentage" /> | 391 | <result column="product_share_percentage" property="productSharePercentage" /> | ... | ... |
... | @@ -56,6 +56,10 @@ public class DoingOrder1DetailResponse implements Serializable { | ... | @@ -56,6 +56,10 @@ public class DoingOrder1DetailResponse implements Serializable { |
56 | @JSONField(serialize = false) | 56 | @JSONField(serialize = false) |
57 | private RefundOperateTypeEnum refundOperateTypeEnum; | 57 | private RefundOperateTypeEnum refundOperateTypeEnum; |
58 | 58 | ||
59 | private BigDecimal deductionLineCouponPrice; | ||
60 | |||
61 | private BigDecimal deductionLineVbPrice; | ||
62 | |||
59 | public Integer getRefundOperateTypeCode() { | 63 | public Integer getRefundOperateTypeCode() { |
60 | if (refundOperateTypeEnum != null) { | 64 | if (refundOperateTypeEnum != null) { |
61 | return refundOperateTypeEnum.getCode(); | 65 | return refundOperateTypeEnum.getCode(); |
... | @@ -290,4 +294,20 @@ public class DoingOrder1DetailResponse implements Serializable { | ... | @@ -290,4 +294,20 @@ public class DoingOrder1DetailResponse implements Serializable { |
290 | public void setProductSharePercentage(BigDecimal productSharePercentage) { | 294 | public void setProductSharePercentage(BigDecimal productSharePercentage) { |
291 | this.productSharePercentage = productSharePercentage; | 295 | this.productSharePercentage = productSharePercentage; |
292 | } | 296 | } |
297 | |||
298 | public BigDecimal getDeductionLineCouponPrice() { | ||
299 | return deductionLineCouponPrice; | ||
300 | } | ||
301 | |||
302 | public void setDeductionLineCouponPrice(BigDecimal deductionLineCouponPrice) { | ||
303 | this.deductionLineCouponPrice = deductionLineCouponPrice; | ||
304 | } | ||
305 | |||
306 | public BigDecimal getDeductionLineVbPrice() { | ||
307 | return deductionLineVbPrice; | ||
308 | } | ||
309 | |||
310 | public void setDeductionLineVbPrice(BigDecimal deductionLineVbPrice) { | ||
311 | this.deductionLineVbPrice = deductionLineVbPrice; | ||
312 | } | ||
293 | } | 313 | } | ... | ... |
... | @@ -34,7 +34,9 @@ public class PlatformOrderItemToPineAppleOrderItemConverter implements Converter | ... | @@ -34,7 +34,9 @@ public class PlatformOrderItemToPineAppleOrderItemConverter implements Converter |
34 | target.setTradeGoodsSpec(source.getSpecDetail()); | 34 | target.setTradeGoodsSpec(source.getSpecDetail()); |
35 | target.setGoodsCount(source.getPurchaseQuantity().toString()); | 35 | target.setGoodsCount(source.getPurchaseQuantity().toString()); |
36 | target.setPrice(source.getPrice().toPlainString()); | 36 | target.setPrice(source.getPrice().toPlainString()); |
37 | target.setDiscountMoney(source.getDiscountPrice() == null ? "0" : source.getDiscountPrice().toPlainString()); | 37 | BigDecimal discountPrice = source.getDeductionLineCouponPrice() == null ?BigDecimal.ZERO: source.getDeductionLineCouponPrice(); |
38 | BigDecimal discountLineVbPrice =source.getDeductionLineVbPrice() == null? BigDecimal.ZERO:source.getDeductionLineVbPrice(); | ||
39 | target.setDiscountMoney(discountPrice.add(discountLineVbPrice).toString()); | ||
38 | target.setTaxAmount(""); | 40 | target.setTaxAmount(""); |
39 | target.setRefundStatus(""); | 41 | target.setRefundStatus(""); |
40 | target.setStatus(""); | 42 | target.setStatus(""); | ... | ... |
... | @@ -64,7 +64,7 @@ public class PlatformOrderToPineAppleOrderConverter implements Converter<DoingOr | ... | @@ -64,7 +64,7 @@ public class PlatformOrderToPineAppleOrderConverter implements Converter<DoingOr |
64 | target.setCurrencyCode(""); | 64 | target.setCurrencyCode(""); |
65 | target.setIdCard(""); | 65 | target.setIdCard(""); |
66 | target.setIdCardTrueName(""); | 66 | target.setIdCardTrueName(""); |
67 | target.setReceiverName(""); | 67 | target.setReceiverName(source.getContact()); |
68 | target.setNick(source.getBuyerUsername()); | 68 | target.setNick(source.getBuyerUsername()); |
69 | target.setWhseCode(""); | 69 | target.setWhseCode(""); |
70 | target.setIsHwgFlag(""); | 70 | target.setIsHwgFlag(""); | ... | ... |
-
请 注册 或 登录 后发表评论