Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
ea8bb9b9
Commit
ea8bb9b9
authored
Jun 17, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210609-v2.0.34-下单锁定配送券ID1030707-周晓航-合并张悦33版本' into qa
parents
7df1975c
6718285e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+2
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+2
-0
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
ea8bb9b9
...
@@ -179,7 +179,7 @@ public class OrderSdkAdapter {
...
@@ -179,7 +179,7 @@ public class OrderSdkAdapter {
}
}
/**
/**
* 老订单服务创建订单对象 转换成 新订单服务请求对象
* 老订单服务创建订单对象 转换成 新订单服务请求对象
fisherman
*/
*/
public
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
request
.
create
.
CreateOrderRequest
convent2NEWCreateOrderRequest
(
BaseCreateOrderRequest
requestVO
)
{
public
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
request
.
create
.
CreateOrderRequest
convent2NEWCreateOrderRequest
(
BaseCreateOrderRequest
requestVO
)
{
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
request
.
create
.
CreateOrderRequest
request
=
new
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
request
.
create
.
CreateOrderRequest
();
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
request
.
create
.
CreateOrderRequest
request
=
new
com
.
freemud
.
application
.
sdk
.
api
.
ordercenter
.
request
.
create
.
CreateOrderRequest
();
...
@@ -530,6 +530,7 @@ public class OrderSdkAdapter {
...
@@ -530,6 +530,7 @@ public class OrderSdkAdapter {
private
Long
convertCreateOrderCost
(
Long
originalAmount
,
List
<
OrderSettlementCreateReq
>
orderSettlementCreateReqList
,
List
<
OrderCostCreateReq
>
orderCostCreateReqs
,
List
<
CreateOrderAccountRequest
>
accounts
)
{
private
Long
convertCreateOrderCost
(
Long
originalAmount
,
List
<
OrderSettlementCreateReq
>
orderSettlementCreateReqList
,
List
<
OrderCostCreateReq
>
orderCostCreateReqs
,
List
<
CreateOrderAccountRequest
>
accounts
)
{
if
(!
CollectionUtils
.
isEmpty
(
accounts
))
{
if
(!
CollectionUtils
.
isEmpty
(
accounts
))
{
ApiLog
.
info
(
"fisherman 构建order_cost_detail数据"
,
accounts
,
JSON
.
toJSONString
(
accounts
));
for
(
CreateOrderAccountRequest
accountRequest
:
accounts
)
{
for
(
CreateOrderAccountRequest
accountRequest
:
accounts
)
{
//老订单服务 1=配送费;3=包装费
//老订单服务 1=配送费;3=包装费
if
(
QueryOrderAccountType
.
DELIVERY_AMOUNT
.
equals
(
accountRequest
.
getAccountType
())
if
(
QueryOrderAccountType
.
DELIVERY_AMOUNT
.
equals
(
accountRequest
.
getAccountType
())
...
...
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
ea8bb9b9
...
@@ -182,6 +182,7 @@ public class OrderAdapter {
...
@@ -182,6 +182,7 @@ public class OrderAdapter {
ArrayList
<
CreateOrderAccountRequest
>
orderAccountDtos
=
new
ArrayList
<>();
ArrayList
<
CreateOrderAccountRequest
>
orderAccountDtos
=
new
ArrayList
<>();
long
deliveryAmount
=
0
;
long
deliveryAmount
=
0
;
long
discountDeliveryAmount
=
0
;
long
discountDeliveryAmount
=
0
;
ApiLog
.
info
(
"fisherman 计算discountDeliveryAmount 的操作 begin"
,
shoppingCartGoodsDto
,
createOrderVo
);
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_DELIVERY
.
getCode
()))
{
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_DELIVERY
.
getCode
()))
{
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
...
@@ -193,6 +194,7 @@ public class OrderAdapter {
...
@@ -193,6 +194,7 @@ public class OrderAdapter {
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
0
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
0
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
}
}
Long
packageAmount
=
shoppingCartGoodsDto
.
getPackageAmount
()
==
null
?
0L
:
shoppingCartGoodsDto
.
getPackageAmount
();
Long
packageAmount
=
shoppingCartGoodsDto
.
getPackageAmount
()
==
null
?
0L
:
shoppingCartGoodsDto
.
getPackageAmount
();
ApiLog
.
info
(
"fisherman 计算discountDeliveryAmount 的操作 end"
,
deliveryAmount
,
discountDeliveryAmount
);
//商城实付无需加上配送费用和包装费
//商城实付无需加上配送费用和包装费
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_MALL
.
getCode
()))
{
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_MALL
.
getCode
()))
{
createOrderDto
.
setAmount
(
shoppingCartGoodsDto
.
getTotalAmount
());
createOrderDto
.
setAmount
(
shoppingCartGoodsDto
.
getTotalAmount
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment