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
41d984ff
Commit
41d984ff
authored
Jul 01, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店数据错误校验
parent
f817e297
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
+1
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+4
-0
No files found.
order-application-service/src/main/java/cn/freemud/enums/ResponseResult.java
View file @
41d984ff
...
@@ -70,6 +70,7 @@ public enum ResponseResult {
...
@@ -70,6 +70,7 @@ public enum ResponseResult {
STORE_WILL_COLSE
(
"43020"
,
"门店即将打烊,不能下单"
,
""
),
STORE_WILL_COLSE
(
"43020"
,
"门店即将打烊,不能下单"
,
""
),
STORE_DDELIVERY_METHOD
(
"43021"
,
"获取门店外卖配送方式异常"
,
""
),
STORE_DDELIVERY_METHOD
(
"43021"
,
"获取门店外卖配送方式异常"
,
""
),
STORE_QUERYEXPECTARRIVETIME
(
"43022"
,
"获取门店计算预计送达时间失败"
,
""
),
STORE_QUERYEXPECTARRIVETIME
(
"43022"
,
"获取门店计算预计送达时间失败"
,
""
),
STORE_DATE_ERROR
(
"43023"
,
"门店数据错误"
,
""
),
/**
/**
* 购物车状态码
* 购物车状态码
...
...
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
41d984ff
...
@@ -205,6 +205,10 @@ public class CheckOrder {
...
@@ -205,6 +205,10 @@ public class CheckOrder {
if
(
storeResponseDto
.
getActiveFlag
()
==
null
||
storeResponseDto
.
getActiveFlag
()
!=
1
)
{
if
(
storeResponseDto
.
getActiveFlag
()
==
null
||
storeResponseDto
.
getActiveFlag
()
!=
1
)
{
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_STOP_BUSINESS
);
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_STOP_BUSINESS
);
}
}
//特殊情况
if
(
""
.
equals
(
storeResponseDto
.
getBusinessType
()))
{
throw
new
ServiceException
(
ResponseResult
.
STORE_DATE_ERROR
);
}
createOrderVo
.
setStoreName
(
storeResponseDto
.
getStoreName
());
createOrderVo
.
setStoreName
(
storeResponseDto
.
getStoreName
());
createOrderVo
.
setStoreAddress
(
storeResponseDto
.
getAddress
());
createOrderVo
.
setStoreAddress
(
storeResponseDto
.
getAddress
());
createOrderVo
.
setThirdShopId
(
storeResponseDto
.
getThirdPartCode
());
createOrderVo
.
setThirdShopId
(
storeResponseDto
.
getThirdPartCode
());
...
...
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