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 5c3dbacc
authored
Oct 30, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(容量): 定义工作队容量查询
1 parent
c427a1bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/service/CapacityQueryService.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/CapacityQueryServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/CapacityQueryService.java
View file @
5c3dbac
...
@@ -6,6 +6,7 @@ import com.dituhui.pea.order.dto.param.CapacityQueryDTO;
...
@@ -6,6 +6,7 @@ import com.dituhui.pea.order.dto.param.CapacityQueryDTO;
import
com.dituhui.pea.order.dto.param.Location
;
import
com.dituhui.pea.order.dto.param.Location
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalTime
;
import
java.util.List
;
import
java.util.List
;
public
interface
CapacityQueryService
{
public
interface
CapacityQueryService
{
...
@@ -22,13 +23,36 @@ public interface CapacityQueryService {
...
@@ -22,13 +23,36 @@ public interface CapacityQueryService {
*/
*/
Result
<
CapacityQueryDTO
.
Result
>
matchCapacityData
(
List
<
CapacityQueryDTO
.
Service
>
services
,
Location
location
,
LocalDate
beginDate
,
LocalDate
endDate
);
Result
<
CapacityQueryDTO
.
Result
>
matchCapacityData
(
List
<
CapacityQueryDTO
.
Service
>
services
,
Location
location
,
LocalDate
beginDate
,
LocalDate
endDate
);
/**
* 根据工作队,时间段,技能、品牌,服务类型查容量
*
* @param teamId 工作队
* @param services 服务技能信息, 包含品牌, 产品类型, 服务技能--汉字
* @param targetDate 时间段对应的日期
* @param startTime 开始时间
* @param endTime 结束时间
* @return 日期对应时间段工作队容量
*/
CapacityQueryDTO
.
Segment
queryCapacityByTeam
(
String
teamId
,
List
<
CapacityQueryDTO
.
Service
>
services
,
LocalDate
targetDate
,
LocalTime
startTime
,
LocalTime
endTime
);
/**
* 根据工作队,日期,技能、品牌,服务类型查容量
*
* @param teamId 工作队
* @param services 服务技能信息, 包含品牌, 产品类型, 服务技能--汉字
* @param targetDate 查询容量的日期
* @return 工作队指定日期的容量
*/
CapacityQueryDTO
.
Segment
queryCapacityByTeam
(
String
teamId
,
List
<
CapacityQueryDTO
.
Service
>
services
,
LocalDate
targetDate
);
/**
/**
* 查询单个工程师指定日期的容量状态
* 查询单个工程师指定日期的容量状态
*
*
* @param engineerCode 工程师编码
* @param engineerCode 工程师编码
* @param date 需要查询的日期
* @param date 需要查询的日期
* @param <E> 返回结果
* @return 返回单个工程师容量结果
* @return 返回单个工程师容量结果
*/
*/
<
E
>
E
queryEngineerCapacity
(
String
engineerCode
,
LocalDate
date
);
CapacityQueryDTO
.
Segment
queryEngineerCapacity
(
String
engineerCode
,
LocalDate
date
);
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/CapacityQueryServiceImpl.java
View file @
5c3dbac
...
@@ -211,9 +211,18 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
...
@@ -211,9 +211,18 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
return
segment
;
return
segment
;
}
}
@Override
public
CapacityQueryDTO
.
Segment
queryCapacityByTeam
(
String
teamId
,
List
<
CapacityQueryDTO
.
Service
>
services
,
LocalDate
targetDate
,
LocalTime
startTime
,
LocalTime
endTime
)
{
return
null
;
}
@Override
public
CapacityQueryDTO
.
Segment
queryCapacityByTeam
(
String
teamId
,
List
<
CapacityQueryDTO
.
Service
>
services
,
LocalDate
targetDate
)
{
return
null
;
}
@Override
@Override
public
<
E
>
E
queryEngineerCapacity
(
String
engineerCode
,
LocalDate
date
)
{
public
CapacityQueryDTO
.
Segment
queryEngineerCapacity
(
String
engineerCode
,
LocalDate
date
)
{
return
null
;
return
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