Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ccadbac7
authored
Nov 03, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:工单紧急正常分组优化
1 parent
8c47b6ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/DispatchServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/DispatchServiceImpl.java
View file @
ccadbac
...
...
@@ -402,8 +402,13 @@ public class DispatchServiceImpl implements DispatchService {
Object
groupkey
=
null
;
// 0:工单优先级,1:耗时,2:意向时间,3:分站/网点,4:技能,5:一家多单
if
(
groupTagId
.
equals
(
OrderGroupEnum
.
zero
.
getCode
())
&&
StringUtils
.
isNotEmpty
(
item
.
getBeanPriority
()))
{
// 分组字段:紧急、正常
makeOrderMap
(
groupByMap
,
item
,
item
.
getBeanPriority
());
// 分组字段:紧急、正常 数据库:1:紧急、0:正常
if
(
item
.
getBeanPriority
().
equals
(
OrderGroupEnum
.
zero
.
getCode
()))
{
groupkey
=
"正常"
;
}
else
{
groupkey
=
"紧急"
;
}
makeOrderMap
(
groupByMap
,
item
,
groupkey
);
}
else
if
(
groupTagId
.
equals
(
OrderGroupEnum
.
one
.
getCode
())
&&
null
!=
item
.
getDuration
())
{
// - 耗时长短-分组字段:长(60分钟及以上)、中(30-60分钟)、短(30分钟及以内);
if
(
item
.
getDuration
()
>=
60
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment