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 ab5b1b0d
authored
Jun 14, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善几个时间字段
1 parent
3fccf14c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/WorkbenchEngineersGanttRespDTO.java
project-order/src/main/java/com/alibaba/cloud/integration/order/entity/OrderAppointmentEntity.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/WorkbenchServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/WorkbenchEngineersGanttRespDTO.java
View file @
ab5b1b0
package
com
.
alibaba
.
cloud
.
integration
.
order
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
...
...
@@ -63,6 +64,7 @@ public class WorkbenchEngineersGanttRespDTO {
/**
* 开始时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
startTime
;
/**
* 结束时间
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/entity/OrderAppointmentEntity.java
View file @
ab5b1b0
...
...
@@ -60,8 +60,9 @@ public class OrderAppointmentEntity {
/**
* 客户预约上门时间
*/
private
Date
expectTime
;
private
Date
expect
Begin
Time
;
private
Date
expectEndTime
;
/**
* 实际上门时间
*/
...
...
@@ -70,12 +71,12 @@ public class OrderAppointmentEntity {
/**
* 开始服务时间
*/
private
Date
s
tartTime
;
private
Date
actualS
tartTime
;
/**
* 结束服务时间
*/
private
Date
e
ndTime
;
private
Date
actualE
ndTime
;
/**
* pre-预排班/confirm-已确认
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/WorkbenchServiceImpl.java
View file @
ab5b1b0
...
...
@@ -82,12 +82,9 @@ public class WorkbenchServiceImpl implements WorkbenchService {
OrderAppointmentEntity
entity
=
(
OrderAppointmentEntity
)
e
;
log
.
info
(
"===== order_id: [{}]"
,
entity
.
getOrderId
());
WorkbenchEngineersGanttRespDTO
.
Order
order
=
new
WorkbenchEngineersGanttRespDTO
.
Order
();
order
.
setStartTime
(
entity
.
getStartTime
())
.
setEndTime
(
entity
.
getEndTime
())
.
setOrderId
(
entity
.
getOrderId
())
.
setOrderStatus
(
entity
.
getStatus
())
.
setStartTime
(
entity
.
getStartTime
())
.
setEndTime
(
entity
.
getEndTime
());
// todo 需要根据订单时间和状态,采用expectXXXX或者actualXXXX
order
.
setStartTime
(
entity
.
getExpectBeginTime
()).
setEndTime
(
entity
.
getExpectEndTime
());
order
.
setOrderId
(
entity
.
getOrderId
()).
setOrderStatus
(
entity
.
getStatus
());
order
.
setTips
(
getOrderTips
(
entity
.
getOrderId
()));
List
<
WorkbenchEngineersGanttRespDTO
.
Order
>
orders
=
null
;
...
...
@@ -105,8 +102,8 @@ public class WorkbenchServiceImpl implements WorkbenchService {
EngineerInfoEntity
engineerInfo
=
engineerInfoDao
.
getByEngineerCode
(
engineerCode
);
WorkbenchEngineersGanttRespDTO
.
GanttChart
engineer
=
new
WorkbenchEngineersGanttRespDTO
.
GanttChart
();
engineer
.
setEngineerCode
(
engineerCode
)
.
setStartTime
(
String
.
format
(
"%s 0
0
:00"
,
reqDTO
.
getDate
()))
.
setEndTime
(
String
.
format
(
"%s
23:59
"
,
reqDTO
.
getDate
()))
.
setStartTime
(
String
.
format
(
"%s 0
8
:00"
,
reqDTO
.
getDate
()))
.
setEndTime
(
String
.
format
(
"%s
18:00
"
,
reqDTO
.
getDate
()))
.
setHoliday
(
false
)
// todo
.
setOrders
(
mapEngineers
.
get
(
engineerCode
))
.
setEngineerName
(
engineerInfo
.
getName
())
...
...
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