Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
sibu-v-mall
/
sibu-v-mall-third-api
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
f0ce4340
由
刘嘉
编写于
2018-04-10 14:17:49 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
菠萝派接口-订单下载,修改子订单优惠金额不正确
1 个父辈
d34d34d4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
3 行删除
com.sibu.orderHelper.integralMall/src/main/resources/mapper/IMDoingOrderMapper.xml
com.sibu.orderHelper.model/src/main/java/com/sibu/orderHelper/integral/reponse/DoingOrder1DetailResponse.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/converter/PlatformOrderItemToPineAppleOrderItemConverter.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/converter/PlatformOrderToPineAppleOrderConverter.java
com.sibu.orderHelper.integralMall/src/main/resources/mapper/IMDoingOrderMapper.xml
查看文件 @
f0ce434
...
...
@@ -257,7 +257,7 @@
where do.main_order_code=#{mainOrderCode} AND do.delete_flag=1 and do.order_from=#{orderFrom}
</select>
<select
id=
"getIMOrderDetailByOrderCode"
parameterType=
"map"
resultMap=
"oneIMOrderDetailColumn"
>
select
<include
refid=
"Select_DoingOrder_column"
/>
,do.transaction_id
select
<include
refid=
"Select_DoingOrder_column"
/>
,do.transaction_id
,do1.deduction_line_coupon_price,do1.deduction_line_vb_price
from ${doingOrderTable} do left join ${doingOrder1Table} do1
on do.order_id=do1.order_id
...
...
@@ -384,6 +384,8 @@
<result
column=
"discount_line_price"
property=
"discountLinePrice"
/>
<result
column=
"deduction_product_vb"
property=
"deductionProductVb"
/>
<result
column=
"deduction_line_vb"
property=
"deductionLineVb"
/>
<result
column=
"deduction_line_coupon_price"
property=
"deductionLineCouponPrice"
/>
<result
column=
"deduction_line_vb_price"
property=
"deductionLineVbPrice"
/>
<result
column=
"refund_status"
property=
"refundStatus"
/>
<result
column=
"sort_index"
property=
"sortIndex"
/>
<result
column=
"product_share_percentage"
property=
"productSharePercentage"
/>
...
...
com.sibu.orderHelper.model/src/main/java/com/sibu/orderHelper/integral/reponse/DoingOrder1DetailResponse.java
查看文件 @
f0ce434
...
...
@@ -56,6 +56,10 @@ public class DoingOrder1DetailResponse implements Serializable {
@JSONField
(
serialize
=
false
)
private
RefundOperateTypeEnum
refundOperateTypeEnum
;
private
BigDecimal
deductionLineCouponPrice
;
private
BigDecimal
deductionLineVbPrice
;
public
Integer
getRefundOperateTypeCode
()
{
if
(
refundOperateTypeEnum
!=
null
)
{
return
refundOperateTypeEnum
.
getCode
();
...
...
@@ -290,4 +294,20 @@ public class DoingOrder1DetailResponse implements Serializable {
public
void
setProductSharePercentage
(
BigDecimal
productSharePercentage
)
{
this
.
productSharePercentage
=
productSharePercentage
;
}
public
BigDecimal
getDeductionLineCouponPrice
()
{
return
deductionLineCouponPrice
;
}
public
void
setDeductionLineCouponPrice
(
BigDecimal
deductionLineCouponPrice
)
{
this
.
deductionLineCouponPrice
=
deductionLineCouponPrice
;
}
public
BigDecimal
getDeductionLineVbPrice
()
{
return
deductionLineVbPrice
;
}
public
void
setDeductionLineVbPrice
(
BigDecimal
deductionLineVbPrice
)
{
this
.
deductionLineVbPrice
=
deductionLineVbPrice
;
}
}
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/converter/PlatformOrderItemToPineAppleOrderItemConverter.java
查看文件 @
f0ce434
...
...
@@ -34,7 +34,9 @@ public class PlatformOrderItemToPineAppleOrderItemConverter implements Converter
target
.
setTradeGoodsSpec
(
source
.
getSpecDetail
());
target
.
setGoodsCount
(
source
.
getPurchaseQuantity
().
toString
());
target
.
setPrice
(
source
.
getPrice
().
toPlainString
());
target
.
setDiscountMoney
(
source
.
getDiscountPrice
()
==
null
?
"0"
:
source
.
getDiscountPrice
().
toPlainString
());
BigDecimal
discountPrice
=
source
.
getDeductionLineCouponPrice
()
==
null
?
BigDecimal
.
ZERO
:
source
.
getDeductionLineCouponPrice
();
BigDecimal
discountLineVbPrice
=
source
.
getDeductionLineVbPrice
()
==
null
?
BigDecimal
.
ZERO
:
source
.
getDeductionLineVbPrice
();
target
.
setDiscountMoney
(
discountPrice
.
add
(
discountLineVbPrice
).
toString
());
target
.
setTaxAmount
(
""
);
target
.
setRefundStatus
(
""
);
target
.
setStatus
(
""
);
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/converter/PlatformOrderToPineAppleOrderConverter.java
查看文件 @
f0ce434
...
...
@@ -64,7 +64,7 @@ public class PlatformOrderToPineAppleOrderConverter implements Converter<DoingOr
target
.
setCurrencyCode
(
""
);
target
.
setIdCard
(
""
);
target
.
setIdCardTrueName
(
""
);
target
.
setReceiverName
(
""
);
target
.
setReceiverName
(
source
.
getContact
()
);
target
.
setNick
(
source
.
getBuyerUsername
());
target
.
setWhseCode
(
""
);
target
.
setIsHwgFlag
(
""
);
...
...
请
注册
或
登录
后发表评论