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
2c229eba
Commit
2c229eba
authored
Apr 27, 2020
by
dingkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店配送
parent
58e7a763
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+2
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+2
-2
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
2c229eba
...
...
@@ -70,7 +70,7 @@ import java.util.stream.Collectors;
public
class
CheckOrder
{
// 配送费逻辑是否使用旧的
@Value
(
"${store.delivery.use
:
old:false}"
)
@Value
(
"${store.delivery.use
.
old:false}"
)
private
boolean
storeDeliveryUseOld
;
@Autowired
...
...
@@ -435,7 +435,7 @@ public class CheckOrder {
queryDeliveryRequest
.
setPartnerId
(
storeResponseDto
.
getPartnerId
());
queryDeliveryRequest
.
setStoreCode
(
storeResponseDto
.
getStoreCode
());
BaseResponse
<
QueryDeliverDetailResponse
>
queryDeliverDetailResponse
=
storeCenterService
.
queryDeliverDetail
(
queryDeliveryRequest
,
trackingNo
);
if
(
queryDeliverDetailResponse
==
null
||
queryDeliverDetailResponse
.
getStatusCode
()
!=
100
||
queryDeliverDetailResponse
.
getData
()
==
null
)
{
if
(
queryDeliverDetailResponse
==
null
||
!
ResponseResult
.
SUCCESS
.
getCode
().
equals
(
queryDeliverDetailResponse
.
getCode
())
||
queryDeliverDetailResponse
.
getData
()
==
null
)
{
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_DELIVERY
);
}
QueryDeliverDetailResponse
deliveryDetail
=
queryDeliverDetailResponse
.
getData
();
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
2c229eba
...
...
@@ -87,7 +87,7 @@ import static java.util.stream.Collectors.toList;
public
class
ShoppingCartNewServiceImpl
implements
ShoppingCartNewService
{
// 配送费逻辑是否使用旧的
@Value
(
"${store.delivery.use
:
old:false}"
)
@Value
(
"${store.delivery.use
.
old:false}"
)
private
boolean
storeDeliveryUseOld
;
@Autowired
...
...
@@ -1464,7 +1464,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
queryDeliveryRequest
.
setUserLatitude
(
queryReceiveAddressResponse
.
getData
().
getLatitude
());
queryDeliveryRequest
.
setUserLongitude
(
queryReceiveAddressResponse
.
getData
().
getLongitude
());
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
QueryDeliverDetailResponse
>
queryDeliverDetailResponse
=
storeCenterService
.
queryDeliverDetail
(
queryDeliveryRequest
,
trackingNo
);
if
(
queryDeliverDetailResponse
==
null
||
queryDeliverDetailResponse
.
getStatusCode
()
!=
100
||
queryDeliverDetailResponse
.
getData
()
==
null
)
{
if
(
queryDeliverDetailResponse
==
null
||
!
ResponseResult
.
SUCCESS
.
getCode
().
equals
(
queryDeliverDetailResponse
.
getCode
())
||
queryDeliverDetailResponse
.
getData
()
==
null
)
{
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_DELIVERY
);
}
if
(
queryDeliverDetailResponse
.
getData
().
getDeliveryAmount
()
==
null
)
{
...
...
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