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
827afaa7
Commit
827afaa7
authored
Nov 17, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线上问题修复
parent
0d4538a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
order-application-service/pom.xml
+1
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+7
-0
No files found.
order-application-service/pom.xml
View file @
827afaa7
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<dependency>
<dependency>
<groupId>
com.freemud.application.service.sdk
</groupId>
<groupId>
com.freemud.application.service.sdk
</groupId>
<artifactId>
storecenter-sdk
</artifactId>
<artifactId>
storecenter-sdk
</artifactId>
<version>
3.
1.9
.RELEASE
</version>
<version>
3.
2.1
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
<groupId>
cn.freemud
</groupId>
...
...
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
827afaa7
...
@@ -183,6 +183,7 @@ public class OrderAdapter {
...
@@ -183,6 +183,7 @@ public class OrderAdapter {
}
}
}
}
createOrderDto
.
setProducts
(
products
);
createOrderDto
.
setProducts
(
products
);
boolean
hasDeliveryMonthCard
=
false
;
for
(
ActivityDiscountsDto
activityDiscountsDto
:
activityDiscountsDtos
)
{
for
(
ActivityDiscountsDto
activityDiscountsDto
:
activityDiscountsDtos
)
{
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
.
accountId
(
activityDiscountsDto
.
getActivityCode
())
.
accountId
(
activityDiscountsDto
.
getActivityCode
())
...
@@ -199,6 +200,9 @@ public class OrderAdapter {
...
@@ -199,6 +200,9 @@ public class OrderAdapter {
jsonObject
.
put
(
"tenderId"
,
activityDiscountsDto
.
getTenderId
());
jsonObject
.
put
(
"tenderId"
,
activityDiscountsDto
.
getTenderId
());
}
else
if
(
ActivityTypeEnum
.
TYPE_34
.
getCode
().
equals
(
activityDiscountsDto
.
getActivityType
()))
{
}
else
if
(
ActivityTypeEnum
.
TYPE_34
.
getCode
().
equals
(
activityDiscountsDto
.
getActivityType
()))
{
jsonObject
.
put
(
"customerCode"
,
activityDiscountsDto
.
getTenderId
());
jsonObject
.
put
(
"customerCode"
,
activityDiscountsDto
.
getTenderId
());
if
(
null
!=
activityDiscountsDto
.
getExtendType
()
&&
activityDiscountsDto
.
getExtendType
()
==
2
)
{
hasDeliveryMonthCard
=
true
;
}
}
}
if
(
null
!=
activityDiscountsDto
.
getExtendType
())
{
if
(
null
!=
activityDiscountsDto
.
getExtendType
())
{
jsonObject
.
put
(
"extendType"
,
activityDiscountsDto
.
getExtendType
());
jsonObject
.
put
(
"extendType"
,
activityDiscountsDto
.
getExtendType
());
...
@@ -217,6 +221,9 @@ public class OrderAdapter {
...
@@ -217,6 +221,9 @@ public class OrderAdapter {
.
sequence
(
orderAccountIndex
++)
.
sequence
(
orderAccountIndex
++)
.
actualPrice
(
discountDeliveryAmount
)
.
actualPrice
(
discountDeliveryAmount
)
.
build
();
.
build
();
if
(
hasDeliveryMonthCard
)
{
createOrderAccountDto
.
setActualPrice
(
Long
.
valueOf
(
storeResponseDto
.
getBenefitCardDiscountAmount
()));
}
orderAccountDtos
.
add
(
createOrderAccountDto
);
orderAccountDtos
.
add
(
createOrderAccountDto
);
}
}
if
(
packageAmount
>
0
)
{
if
(
packageAmount
>
0
)
{
...
...
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