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
c402a96d
Commit
c402a96d
authored
Jan 04, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-ka半自动派单ID1040800-20211222-zxh' into qa
parents
edb51a67
dc5fe109
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
order-management/src/main/java/cn/freemud/management/entities/dto/request/console/DispatchConfig.java
+2
-1
order-management/src/main/java/cn/freemud/management/service/handle/DeliveryHandle.java
+2
-6
No files found.
order-management/src/main/java/cn/freemud/management/entities/dto/request/console/DispatchConfig.java
View file @
c402a96d
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
...
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* @author : xh.Z
* @author : xh.Z
...
@@ -56,5 +57,5 @@ public class DispatchConfig {
...
@@ -56,5 +57,5 @@ public class DispatchConfig {
/**
/**
* 高峰期派单配置(json)
* 高峰期派单配置(json)
*/
*/
private
String
peakTimeConfigList
;
private
List
<
PeakTimeConfig
>
peakTimeConfigList
;
}
}
order-management/src/main/java/cn/freemud/management/service/handle/DeliveryHandle.java
View file @
c402a96d
...
@@ -306,14 +306,10 @@ public class DeliveryHandle {
...
@@ -306,14 +306,10 @@ public class DeliveryHandle {
* 返回是否有高峰配置 , 没有就返回 null
* 返回是否有高峰配置 , 没有就返回 null
*
*
* @param currentDate
* @param currentDate
* @param peakTimeConfigList
Str
* @param peakTimeConfigList
* @return
* @return
*/
*/
private
Integer
getPeakTime
(
Date
currentDate
,
String
peakTimeConfigListStr
)
{
private
Integer
getPeakTime
(
Date
currentDate
,
List
<
PeakTimeConfig
>
peakTimeConfigList
)
{
if
(
StringUtils
.
isEmpty
(
peakTimeConfigListStr
))
{
return
null
;
}
List
<
PeakTimeConfig
>
peakTimeConfigList
=
JSON
.
parseArray
(
peakTimeConfigListStr
,
PeakTimeConfig
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
peakTimeConfigList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
peakTimeConfigList
))
{
for
(
PeakTimeConfig
peakTimeConfig
:
peakTimeConfigList
)
{
for
(
PeakTimeConfig
peakTimeConfig
:
peakTimeConfigList
)
{
boolean
isHit
=
this
.
timeScoreVerify
(
currentDate
,
peakTimeConfig
.
getStartTime
(),
peakTimeConfig
.
getEndTime
());
boolean
isHit
=
this
.
timeScoreVerify
(
currentDate
,
peakTimeConfig
.
getStartTime
(),
peakTimeConfig
.
getEndTime
());
...
...
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