Commit 5c3dbacc by 刘鑫

feat(容量): 定义工作队容量查询

1 parent c427a1bc
...@@ -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);
} }
...@@ -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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!