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 e9fb4e82
authored
Jul 25, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
2488d21e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderServiceDetailImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderServiceDetailImpl.java
View file @
e9fb4e8
...
@@ -3,6 +3,7 @@ package com.dituhui.pea.order.service.impl;
...
@@ -3,6 +3,7 @@ package com.dituhui.pea.order.service.impl;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.common.ListUtils
;
import
com.dituhui.pea.order.common.TimeUtils
;
import
com.dituhui.pea.order.common.TimeUtils
;
import
com.dituhui.pea.order.dao.*
;
import
com.dituhui.pea.order.dao.*
;
import
com.dituhui.pea.order.dto.*
;
import
com.dituhui.pea.order.dto.*
;
...
@@ -127,11 +128,17 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
...
@@ -127,11 +128,17 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
Comparator
<
OrderInfo
>
dtDesc
=
Comparator
.
comparing
(
OrderInfo:
:
getDt
).
reversed
();
Comparator
<
OrderInfo
>
dtDesc
=
Comparator
.
comparing
(
OrderInfo:
:
getDt
).
reversed
();
List
<
OrderInfo
>
results
=
orders
.
stream
().
sorted
(
dtDesc
).
collect
(
Collectors
.
toList
());
List
<
OrderInfo
>
results
=
orders
.
stream
().
sorted
(
dtDesc
).
collect
(
Collectors
.
toList
());
LocalDate
lastDt
=
results
.
get
(
0
).
getDt
();
LocalDate
lastDt
=
results
.
get
(
0
).
getDt
();
//最新预约
List
<
OrderAppointmentListResp
.
OrderAppointment
>
items
=
new
ArrayList
<>();
List
<
OrderAppointmentListResp
.
OrderAppointment
>
items
=
new
ArrayList
<>();
for
(
OrderInfo
o
:
results
)
{
for
(
OrderInfo
o
:
results
)
{
EngineerInfo
eg
=
egInfo
.
getOrDefault
(
o
.
getEngineerCode
(),
null
);
EngineerInfo
eg
=
egInfo
.
getOrDefault
(
o
.
getEngineerCode
(),
null
);
if
(
eg
==
null
)
{
log
.
warn
(
"未获得工程师{}基础信息, 订单:{}"
,
o
.
getEngineerCode
(),
o
.
getOrderId
());
}
String
skill
=
egSkill
.
getOrDefault
(
o
.
getEngineerCode
(),
null
);
String
skill
=
egSkill
.
getOrDefault
(
o
.
getEngineerCode
(),
null
);
if
(
skill
==
null
)
{
log
.
warn
(
"未获得工程师{}基础技能, 订单:{}"
,
o
.
getEngineerCode
(),
o
.
getOrderId
());
}
// 获取工程师姓名
// 获取工程师姓名
String
engineerName
=
(
eg
!=
null
)
?
eg
.
getName
()
:
o
.
getEngineerCode
();
String
engineerName
=
(
eg
!=
null
)
?
eg
.
getName
()
:
o
.
getEngineerCode
();
...
@@ -365,7 +372,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
...
@@ -365,7 +372,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
private
List
<
KV
>
packOrderTimeline
(
List
<
OrderTimeline
>
timelines
)
{
private
List
<
KV
>
packOrderTimeline
(
List
<
OrderTimeline
>
timelines
)
{
List
<
KV
>
items
=
new
ArrayList
<>();
List
<
KV
>
items
=
new
ArrayList
<>();
if
(
timelines
==
null
)
{
if
(
ListUtils
.
isEmpty
(
timelines
))
{
return
items
;
return
items
;
}
}
for
(
OrderTimeline
o
:
timelines
)
{
for
(
OrderTimeline
o
:
timelines
)
{
...
...
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