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 836ed73c
authored
Jun 15, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-dingwf-mvp616' into develop
2 parents
105a3976
3bb44cb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dto/WorkbenchEngineersGanttRespDTO.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/CapacityQueryServiceImpl.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 @
836ed73
...
...
@@ -56,9 +56,9 @@ public class WorkbenchEngineersGanttRespDTO {
*/
private
String
orderId
;
/**
*
工单状态值
*
排班状态
*/
private
String
order
Status
;
private
String
pre
Status
;
/**
* 派单状态
*/
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/CapacityQueryServiceImpl.java
View file @
836ed73
...
...
@@ -53,7 +53,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
@Override
public
Result
<?>
getOneCapacityData
(
CapacityOrderQueryReqDTO
reqDTO
)
{
// 单条容量查询
log
.
info
(
"===> getOneCapacityData"
);
log
.
info
(
"===> getOneCapacityData
()
"
);
String
layer
=
productCategoryDao
.
getLayerByBrandAndTypeAndSkill
(
reqDTO
.
getBrand
(),
reqDTO
.
getType
(),
reqDTO
.
getSkill
());
String
teamId
=
commonService
.
getTeamIdByInput
(
reqDTO
.
getLocation
(),
reqDTO
.
getAddress
(),
layer
);
log
.
info
(
"teamId[{}]layer[{}]"
,
teamId
,
layer
);
...
...
@@ -80,12 +80,15 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
Pageable
pageable
=
PageRequest
.
of
(
reqDTO
.
getPage
()
-
1
,
reqDTO
.
getPageSize
());
if
(
"cluster"
.
equals
(
reqDTO
.
getLevelType
()))
{
List
<
String
>
branchIds
=
getBranchIdsByClusterId
(
reqDTO
.
getLevelValue
());
log
.
info
(
"levelType: {} ==> branchIds: {}"
,
reqDTO
.
getLevelType
(),
branchIds
);
stats
=
capacityOrgStatDao
.
findByBranchIdsAndWorkdayBetween
(
branchIds
,
reqDTO
.
getBeginDate
(),
reqDTO
.
getEndDate
(),
pageable
);
}
else
if
(
"branch"
.
equals
(
reqDTO
.
getLevelType
()))
{
List
<
String
>
groupIds
=
getGroupIdsByBranchId
(
reqDTO
.
getLevelValue
());
log
.
info
(
"levelType: {} ==> groupIds: {}"
,
reqDTO
.
getLevelType
(),
groupIds
);
stats
=
capacityOrgStatDao
.
findByGroupIdsAndWorkdayBetween
(
groupIds
,
reqDTO
.
getBeginDate
(),
reqDTO
.
getEndDate
(),
pageable
);
}
else
{
List
<
String
>
teamIds
=
getTeamIdsByGroupId
(
reqDTO
.
getLevelValue
());
log
.
info
(
"levelType: {} ==> teamIds: {}"
,
reqDTO
.
getLevelType
(),
teamIds
);
stats
=
capacityTeamStatDao
.
findByTeamIdsAndWorkdayBetween
(
teamIds
,
reqDTO
.
getBeginDate
(),
reqDTO
.
getEndDate
(),
pageable
);
}
CapacityStatQueryRespDTO
data
=
new
CapacityStatQueryRespDTO
();
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/WorkbenchServiceImpl.java
View file @
836ed73
...
...
@@ -84,7 +84,7 @@ public class WorkbenchServiceImpl implements WorkbenchService {
WorkbenchEngineersGanttRespDTO
.
Order
order
=
new
WorkbenchEngineersGanttRespDTO
.
Order
();
// todo 需要根据订单时间和状态,采用expectXXXX或者actualXXXX
order
.
setStartTime
(
e
.
getExpectStartTime
()).
setEndTime
(
e
.
getExpectEndTime
());
order
.
setOrderId
(
e
.
getOrderId
()).
set
OrderStatus
(
e
.
get
Status
());
order
.
setOrderId
(
e
.
getOrderId
()).
set
PreStatus
(
e
.
getPre
Status
());
order
.
setTips
(
getOrderTips
(
e
.
getOrderId
()));
order
.
setAppointmentStatus
(
mapOrderRequest
.
get
(
e
.
getOrderId
()).
getAppointmentStatus
());
List
<
WorkbenchEngineersGanttRespDTO
.
Order
>
orders
=
null
;
...
...
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