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
jenkins
order-group
Commits
7bdf35be
Commit
7bdf35be
authored
Apr 09, 2020
by
姜海波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加超时配置
parent
0538d644
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+2
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
7bdf35be
...
@@ -82,6 +82,7 @@ import java.util.function.Function;
...
@@ -82,6 +82,7 @@ import java.util.function.Function;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
cn
.
freemud
.
constant
.
OrderRefundConstant
.
ALLOW_REFUND
;
import
static
cn
.
freemud
.
constant
.
OrderRefundConstant
.
ALLOW_REFUND
;
import
static
cn
.
freemud
.
enums
.
BusinessTypeEnum
.
SAAS_DELIVERY
;
@Component
@Component
public
class
OrderAdapter
{
public
class
OrderAdapter
{
...
@@ -134,7 +135,7 @@ public class OrderAdapter {
...
@@ -134,7 +135,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
;
if
(
StringUtils
.
isNotEmpty
(
createOrderVo
.
getMenuTyp
e
())&&
deliveryInfoDto
!=
null
)
{
if
(
createOrderVo
.
getMenuType
().
equals
(
SAAS_DELIVERY
.
getCod
e
())&&
deliveryInfoDto
!=
null
)
{
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
()){
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
()){
...
...
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