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
2133e9e1
Commit
2133e9e1
authored
Mar 09, 2020
by
huvchao@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
顾客更改收货地址不取消配送单
parent
5c99a044
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
order-application-service/src/main/java/cn/freemud/service/delivery/ThirdDeliveryServiceImpl.java
+10
-3
No files found.
order-application-service/src/main/java/cn/freemud/service/delivery/ThirdDeliveryServiceImpl.java
View file @
2133e9e1
...
@@ -30,12 +30,15 @@ import com.freemud.sdk.api.assortment.order.request.order.AssortmentUpdateDelive
...
@@ -30,12 +30,15 @@ import com.freemud.sdk.api.assortment.order.request.order.AssortmentUpdateDelive
import
com.freemud.sdk.api.assortment.order.request.order.UpdateDeliveryInfoByIdRequest
;
import
com.freemud.sdk.api.assortment.order.request.order.UpdateDeliveryInfoByIdRequest
;
import
com.freemud.sdk.api.assortment.order.response.order.OrderBaseResponse
;
import
com.freemud.sdk.api.assortment.order.response.order.OrderBaseResponse
;
import
com.freemud.sdk.api.assortment.order.service.OrderCenterSdkService
;
import
com.freemud.sdk.api.assortment.order.service.OrderCenterSdkService
;
import
com.google.common.collect.Lists
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
/**
* All rights Reserved, Designed By www.freemud.cn
* All rights Reserved, Designed By www.freemud.cn
*
*
...
@@ -140,12 +143,16 @@ public class ThirdDeliveryServiceImpl implements ThirdDeliveryService {
...
@@ -140,12 +143,16 @@ public class ThirdDeliveryServiceImpl implements ThirdDeliveryService {
* @return
* @return
*/
*/
public
boolean
isDeliveryAbnormalAndCustomerChangedAddress
(
CallbackUrlRequestDto
request
)
{
public
boolean
isDeliveryAbnormalAndCustomerChangedAddress
(
CallbackUrlRequestDto
request
)
{
String
str
=
"顾客更改配送地址"
;
if
(
DeliveryStatus
.
DELIVERYERROR
.
getCode
()
!=
request
.
getDeliveryStatus
())
return
false
;
if
(
DeliveryStatus
.
DELIVERYERROR
.
getCode
()
==
request
.
getDeliveryStatus
()
if
(
StringUtils
.
isNotBlank
(
request
.
getRemark
()))
return
false
;
&&
StringUtils
.
isNotBlank
(
request
.
getRemark
())
&&
request
.
getRemark
().
contains
(
str
))
{
List
<
String
>
abnormalDesc
=
Lists
.
newArrayList
(
"顾客更改配送地址"
,
"顾客更改收货地址"
);
for
(
String
str
:
abnormalDesc
)
{
if
(
request
.
getRemark
().
contains
(
str
))
{
log
.
info
(
"isDeliveryAbnormalAndCustomerChangedAddress.true of {}"
,
JSONObject
.
toJSONString
(
request
));
log
.
info
(
"isDeliveryAbnormalAndCustomerChangedAddress.true of {}"
,
JSONObject
.
toJSONString
(
request
));
return
true
;
return
true
;
}
}
}
return
false
;
return
false
;
}
}
...
...
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