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
425f6d6c
Commit
425f6d6c
authored
Mar 26, 2020
by
姜海波
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature-2020/2/10-1.9.15-免配送费二期-海波' into qa
parents
3b842f76
7d226603
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
18 deletions
+5
-18
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+3
-18
order-application-service/src/main/java/cn/freemud/enums/ActivityTypeEnum.java
+1
-0
order-management/order-management.iml
+1
-0
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
425f6d6c
...
@@ -139,15 +139,6 @@ public class OrderAdapter {
...
@@ -139,15 +139,6 @@ public class OrderAdapter {
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
()){
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
()){
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
();
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
.
name
(
OldOrderAccountType
.
FULL_DISTRIBUTION_FEE
.
getDesc
())
.
price
(
deliveryAmount
-
discountDeliveryAmount
)
.
accountType
(
QueryOrderAccountType
.
FULL_DISTRIBUTION_FEE
)
.
accountId
(
shoppingCartGoodsDto
.
getDiscountDeliveryActivityCode
())
.
build
();
orderAccountDtos
.
add
(
createOrderAccountDto
);
}
}
}
}
Long
packageAmount
=
shoppingCartGoodsDto
.
getPackageAmount
()
==
null
?
0L
:
shoppingCartGoodsDto
.
getPackageAmount
();
Long
packageAmount
=
shoppingCartGoodsDto
.
getPackageAmount
()
==
null
?
0L
:
shoppingCartGoodsDto
.
getPackageAmount
();
...
@@ -610,15 +601,6 @@ public class OrderAdapter {
...
@@ -610,15 +601,6 @@ public class OrderAdapter {
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
();
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
()){
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
()){
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
();
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
.
name
(
OldOrderAccountType
.
FULL_DISTRIBUTION_FEE
.
getDesc
())
.
price
(
deliveryAmount
-
discountDeliveryAmount
)
.
accountType
(
QueryOrderAccountType
.
FULL_DISTRIBUTION_FEE
)
.
accountId
(
shoppingCartGoodsDto
.
getDiscountDeliveryActivityCode
())
.
build
();
orderAccountDtos
.
add
(
createOrderAccountDto
);
}
}
}
}
...
@@ -1998,6 +1980,9 @@ public class OrderAdapter {
...
@@ -1998,6 +1980,9 @@ public class OrderAdapter {
if
(
ActivityTypeEnum
.
TYPE_104
.
getCode
().
equals
(
activityType
))
{
if
(
ActivityTypeEnum
.
TYPE_104
.
getCode
().
equals
(
activityType
))
{
return
OldOrderAccountType
.
XY_DISCOUNT
;
return
OldOrderAccountType
.
XY_DISCOUNT
;
}
}
if
(
ActivityTypeEnum
.
TYPE_14
.
getCode
().
equals
(
activityType
))
{
return
OldOrderAccountType
.
FULL_DISTRIBUTION_FEE
;
}
return
OldOrderAccountType
.
BUYM_SENDN
;
return
OldOrderAccountType
.
BUYM_SENDN
;
}
}
...
...
order-application-service/src/main/java/cn/freemud/enums/ActivityTypeEnum.java
View file @
425f6d6c
...
@@ -17,6 +17,7 @@ public enum ActivityTypeEnum {
...
@@ -17,6 +17,7 @@ public enum ActivityTypeEnum {
TYPE_11
(
11
,
"每满减"
),
TYPE_11
(
11
,
"每满减"
),
TYPE_12
(
12
,
"阶梯满减"
),
TYPE_12
(
12
,
"阶梯满减"
),
TYPE_13
(
13
,
"新用户立减"
),
TYPE_13
(
13
,
"新用户立减"
),
TYPE_14
(
14
,
"满减配送费"
),
TYPE_104
(
104
,
"x件y折"
),
TYPE_104
(
104
,
"x件y折"
),
/**
/**
* 限时特价
* 限时特价
...
...
order-management/order-management.iml
View file @
425f6d6c
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
</content>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Maven: cn.freemud:assortment-ordercenter-sdk:1.1.5.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-starter-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-starter-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:1.5.3.RELEASE"
level=
"project"
/>
...
...
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