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
f5bcc41d
Commit
f5bcc41d
authored
Nov 03, 2020
by
chongfu.liang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/2.0.4-修改支持的订单类型'
parents
2d49b3fa
cef02ec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
order-management/src/main/java/cn/freemud/management/service/handle/DeliveryHandle.java
+15
-1
No files found.
order-management/src/main/java/cn/freemud/management/service/handle/DeliveryHandle.java
View file @
f5bcc41d
...
@@ -23,6 +23,7 @@ import com.freemud.application.sdk.api.log.LogThreadLocal;
...
@@ -23,6 +23,7 @@ import com.freemud.application.sdk.api.log.LogThreadLocal;
import
com.freemud.application.sdk.api.service.EmailAlertService
;
import
com.freemud.application.sdk.api.service.EmailAlertService
;
import
com.freemud.application.sdk.api.storecenter.request.StoreInfoRequest
;
import
com.freemud.application.sdk.api.storecenter.request.StoreInfoRequest
;
import
com.freemud.application.sdk.api.storecenter.response.StoreResponse
;
import
com.freemud.application.sdk.api.storecenter.response.StoreResponse
;
import
com.freemud.sdk.api.assortment.order.adapter.OrderSdkAdapter
;
import
com.freemud.sdk.api.assortment.order.enums.OrderSourceType
;
import
com.freemud.sdk.api.assortment.order.enums.OrderSourceType
;
import
com.freemud.sdk.api.assortment.order.response.order.QueryOrdersResponse
;
import
com.freemud.sdk.api.assortment.order.response.order.QueryOrdersResponse
;
import
javafx.util.Pair
;
import
javafx.util.Pair
;
...
@@ -54,6 +55,8 @@ public class DeliveryHandle {
...
@@ -54,6 +55,8 @@ public class DeliveryHandle {
@Value
(
"${saas.order.delivery.callBackUrl}"
)
@Value
(
"${saas.order.delivery.callBackUrl}"
)
private
String
deliveryCallBackUrl
;
private
String
deliveryCallBackUrl
;
@Value
(
"${delivery.support.ordersource}"
)
private
String
supportOrderSource
;
@Autowired
@Autowired
private
DeliveryService
deliveryService
;
private
DeliveryService
deliveryService
;
...
@@ -166,7 +169,15 @@ public class DeliveryHandle {
...
@@ -166,7 +169,15 @@ public class DeliveryHandle {
return
false
;
return
false
;
}
}
//订单来源异常
//订单来源异常
if
(!
orderBean
.
getSource
().
equalsIgnoreCase
(
OrderSourceType
.
SAAS
.
getCode
()))
{
boolean
sourceCheck
=
false
;
String
[]
supportSource
=
supportOrderSource
.
split
(
","
);
// OrderSourceType.SAAS.getCode()
for
(
String
source
:
supportSource
){
if
(
orderBean
.
getSource
().
equalsIgnoreCase
(
source
))
{
sourceCheck
=
true
;
break
;
}
}
if
(!
sourceCheck
){
return
false
;
return
false
;
}
}
//配送信息为空,则不创建配送单
//配送信息为空,则不创建配送单
...
@@ -179,4 +190,7 @@ public class DeliveryHandle {
...
@@ -179,4 +190,7 @@ public class DeliveryHandle {
}
}
return
true
;
return
true
;
}
}
}
}
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