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
9694b58f
Commit
9694b58f
authored
Apr 23, 2020
by
胡超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log for qa STORE_ITEM_NOT_DELIVERY
parent
c627f4d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+7
-0
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
9694b58f
...
...
@@ -51,9 +51,11 @@ import com.freemud.application.sdk.api.storecenter.response.StoreResponse;
import
com.freemud.application.sdk.api.storecenter.service.StoreCenterService
;
import
com.google.common.collect.Lists
;
import
com.google.gson.Gson
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang.ObjectUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.builder.ToStringBuilder
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
...
...
@@ -64,6 +66,7 @@ import java.util.*;
import
java.util.stream.Collectors
;
@Component
@Slf4j
public
class
CheckOrder
{
@Autowired
...
...
@@ -233,12 +236,15 @@ public class CheckOrder {
// 校验外卖信息
if
(
CreateOrderType
.
TAKE_OUT
.
getCode
().
equals
(
createOrderVo
.
getOrderType
()))
{
if
(
config
==
null
||
config
.
getTakeaway
()
==
null
||
config
.
getTakeaway
()
==
0
)
{
log
.
info
(
"STORE_ITEM_NOT_DELIVERY1 of {}"
,
(
null
!=
config
?
ToStringBuilder
.
reflectionToString
(
config
)
:
""
));
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_DELIVERY
);
}
if
(
storeResponseDto
.
getDelivery
()
==
null
||
storeResponseDto
.
getDelivery
()
==
2
)
{
log
.
info
(
"STORE_ITEM_NOT_DELIVERY2 of {}"
,
(
null
!=
storeResponseDto
?
ToStringBuilder
.
reflectionToString
(
storeResponseDto
)
:
""
));
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_DELIVERY
);
}
if
(
StringUtils
.
isBlank
(
storeResponseDto
.
getDeliveryHoursDay
()))
{
log
.
info
(
"STORE_ITEM_NOT_DELIVERY3 of {}"
,
(
null
!=
storeResponseDto
?
ToStringBuilder
.
reflectionToString
(
storeResponseDto
)
:
""
));
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_DELIVERY
);
}
//获取门店配送信息
...
...
@@ -372,6 +378,7 @@ public class CheckOrder {
OpenPlatformPartnerStoreDeliveryConfig
deliveryConfig
=
deliveryConfigManager
.
findByPartnerIdAndStoreCode
(
storeResponseDto
.
getPartnerId
(),
storeResponseDto
.
getStoreCode
());
if
(
deliveryConfig
==
null
)
{
log
.
info
(
"STORE_ITEM_NOT_DELIVERY4 of {}"
,
(
null
!=
deliveryConfig
?
ToStringBuilder
.
reflectionToString
(
deliveryConfig
)
:
""
));
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_DELIVERY
);
}
// 判断门店是否启用外卖,只有当小程序开通外卖,且门店开通外卖,设置 外卖配送时间 才开启外卖功能
...
...
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