Commit e9d01980 by 刘鑫

Merge branch 'develop-16542' into 'develop'

根据工程师,品牌,技能,服务类型,时间段查询的接口

See merge request !350
2 parents 03f784de 9bd7c8d6
......@@ -28,7 +28,7 @@ public interface CapacityQueryService {
* 根据工作队,时间段,技能、品牌,服务类型查容量
*
* @param teamId 工作队
* @param service 服务技能信息, 包含品牌, 产品类型, 服务技能--汉字
* @param service 服务技能信息, 包含品牌, 产品类型, 服务技能--汉字
* @param targetDate 时间段对应的日期
* @param startTime 开始时间
* @param endTime 结束时间
......@@ -41,7 +41,7 @@ public interface CapacityQueryService {
* 根据工作队,日期,技能、品牌,服务类型查容量
*
* @param teamId 工作队
* @param services 服务技能信息, 包含品牌, 产品类型, 服务技能--汉字
* @param service 服务技能信息, 包含品牌, 产品类型, 服务技能--汉字
* @param targetDate 查询容量的日期
* @return 工作队指定日期的容量
*/
......@@ -55,4 +55,17 @@ public interface CapacityQueryService {
* @return 返回单个工程师容量结果
*/
CapacityQueryDTO.Segment queryEngineerCapacity(String engineerCode, LocalDate date);
/**
* 查询单个工程师指定日期时间段内的的容量状态
*
* @param engineerCode 工程师编码
* @param date 需要查询的日期
* @param startTime 开始时间
* @param endTime 结束时间
* @return 返回单个工程师容量结果
*/
CapacityQueryDTO.Segment queryEngineerCapacity(String engineerCode, CapacityQueryDTO.Service service,
LocalDate date, LocalTime startTime, LocalTime endTime);
}
......@@ -250,6 +250,19 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
return null;
}
@Override
public CapacityQueryDTO.Segment queryEngineerCapacity(String engineerCode, CapacityQueryDTO.Service service,
LocalDate date, LocalTime startTime, LocalTime endTime) {
List<CapacityEngineerSliceUsedEntity> engineerTimeSlice = engineerSliceUsedCapacityDao
.findByWorkdayAndEngineerCode(DateTimeUtil.formatDate(date), engineerCode);
//查询对应的技能信息
SkillInfoEntity skillInfo = skillInfoDao.getByBrandAndTypeAndSkill(service.getBrand(),
service.getProductType(), service.getServiceType());
return caculateTargetTimeSlice(skillInfo.getTakeTime(), "时间段", engineerTimeSlice, startTime, endTime, date);
}
@Override
public Result<?> queryMatchCapacityData(CapacityOrderQueryDTO.Request reqDTO) {
// 单条容量查询
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!