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 7b14cebc
authored
Jul 25, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未确认工单虚框返回;增加了各个时间要素;
1 parent
c8834d09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerGanttServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerGanttServiceImpl.java
View file @
7b14ceb
...
...
@@ -80,7 +80,7 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
}
slot
.
setBgColor
(
getColor
(
e
.
getServiceStatus
()));
if
(!
e
.
getAppointmentStatus
().
equals
(
"CONFIRM"
))
{
slot
.
setBorderStyle
(
"d
ott
ed"
);
// 未确认的指派,统一加上虚框
slot
.
setBorderStyle
(
"d
ash
ed"
);
// 未确认的指派,统一加上虚框
}
slots
.
add
(
slot
);
if
(
e
.
getArriveElapsed
()
>
0
)
{
...
...
@@ -174,14 +174,15 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"工单号码"
).
setValue
(
orderId
));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"类型/品牌"
).
setValue
(
String
.
format
(
"%s %s"
,
order
.
getBrand
(),
order
.
getType
())));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"电话/地址"
).
setValue
(
String
.
format
(
"%s %s\n %s"
,
order
.
getName
(),
order
.
getPhone
(),
order
.
getAddress
())));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"标签"
).
setValue
(
order
.
getTags
()));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"技能"
).
setValue
(
String
.
format
(
"%s/%s/%s"
,
order
.
getBrand
(),
order
.
getType
(),
order
.
getSkill
())));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"期望时间"
).
setValue
(
String
.
format
(
"%s-%s"
,
DateUtils
.
formatDateTime
(
order
.
getExpectTimeBegin
(),
"HH:mm"
),
DateUtils
.
formatDateTime
(
order
.
getExpectTimeEnd
(),
"HH:mm"
))));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"计划时间"
).
setValue
(
String
.
format
(
"%s-%s"
,
DateUtils
.
formatDateTime
(
order
.
getPlanStartTime
(),
"HH:mm"
),
DateUtils
.
formatDateTime
(
order
.
getPlanEndTime
(),
"HH:mm"
))));
if
(
StringUtils
.
isNotBlank
(
order
.
getApplyNote
()))
{
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"备注"
).
setValue
(
order
.
getApplyNote
()));
}
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"标签"
).
setValue
(
order
.
getTags
()));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"期望最早上门时间"
).
setValue
(
order
.
getExpectTimeBegin
().
toString
()));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"期望最迟上门时间"
).
setValue
(
order
.
getExpectTimeEnd
().
toString
()));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"计划上门开始时间"
).
setValue
(
order
.
getPlanStartTime
().
toString
()));
tips
.
add
(
new
LabelValueDTO
().
setLabel
(
"计划上门完成时间"
).
setValue
(
order
.
getPlanEndTime
().
toString
()));
return
tips
;
}
...
...
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