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
26945128
Commit
26945128
authored
Aug 16, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'KA-2.0.41-爱马哥预订单开发-zxh' into qa
parents
64085d16
241bf605
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
order-application-service/src/main/java/cn/freemud/entities/dto/store/BusinessInfoDto.java
+0
-4
order-application-service/src/main/java/cn/freemud/entities/dto/store/ExpandFields.java
+4
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+2
-2
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/store/BusinessInfoDto.java
View file @
26945128
...
@@ -38,10 +38,6 @@ public class BusinessInfoDto {
...
@@ -38,10 +38,6 @@ public class BusinessInfoDto {
private
Integer
deliveryProcessingAfterMinute
;
private
Integer
deliveryProcessingAfterMinute
;
private
Integer
deliveryProcessingBeforeMinute
;
private
Integer
deliveryProcessingBeforeMinute
;
private
Integer
orderProgressBarStatus
;
private
Integer
orderProgressBarStatus
;
/**
* 是否开启 预定单功能 1开 0关
*/
private
Integer
preOrderSwitch
;
private
ExpandFields
expandFields
;
private
ExpandFields
expandFields
;
...
...
order-application-service/src/main/java/cn/freemud/entities/dto/store/ExpandFields.java
View file @
26945128
...
@@ -26,5 +26,9 @@ public class ExpandFields {
...
@@ -26,5 +26,9 @@ public class ExpandFields {
//每增加一公里增加的时长(分钟)
//每增加一公里增加的时长(分钟)
private
String
appendMinutePerKilometer
;
private
String
appendMinutePerKilometer
;
/**
* 是否开启 预定单功能 1开 0关
*/
private
Integer
preOrderSwitch
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
26945128
...
@@ -411,13 +411,13 @@ public class CheckOrder {
...
@@ -411,13 +411,13 @@ public class CheckOrder {
* @param storeResponseDto
* @param storeResponseDto
*/
*/
private
void
checkAdvanceOrderExpectTime
(
BusinessInfoDto
queryBusinessInfoNew
,
StoreResponse
.
BizVO
storeResponseDto
,
Date
takeMealDateTime
)
{
private
void
checkAdvanceOrderExpectTime
(
BusinessInfoDto
queryBusinessInfoNew
,
StoreResponse
.
BizVO
storeResponseDto
,
Date
takeMealDateTime
)
{
AssortOrderLogUtil
.
info
(
"fisherman 校验门店时间数据 01"
,
JSON
.
toJSONString
(
queryBusinessInfoNew
)
,
AssortOrderLogUtil
.
info
(
"fisherman 校验门店时间数据 01"
,
null
,
JSON
.
toJSONString
(
storeResponseDto
),
JSON
.
toJSONString
(
storeResponseDto
),
JSON
.
toJSONString
(
takeMealDateTime
));
JSON
.
toJSONString
(
takeMealDateTime
));
if
(
Objects
.
isNull
(
queryBusinessInfoNew
))
{
if
(
Objects
.
isNull
(
queryBusinessInfoNew
))
{
return
;
return
;
}
}
if
(
ObjectUtils
.
notEqual
(
queryBusinessInfoNew
.
getPreOrderSwitch
(),
1
))
{
if
(
ObjectUtils
.
notEqual
(
queryBusinessInfoNew
.
get
ExpandFields
().
get
PreOrderSwitch
(),
1
))
{
// 没开启 抛出异常
// 没开启 抛出异常
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_ADVANCE
);
throw
new
ServiceException
(
ResponseResult
.
STORE_ITEM_NOT_ADVANCE
);
}
}
...
...
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