Commit ab7c0ad9 by huangjinxin

Merge remote-tracking branch 'origin/develop' into develop

2 parents 8acf8f2b 353de893
...@@ -134,7 +134,7 @@ public class PeaApiController { ...@@ -134,7 +134,7 @@ public class PeaApiController {
return service; return service;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
return capacityQueryService.matchCapacityData(convertService, reqDTO.getLocation(), startDate, endDate); return capacityQueryService.matchCapacityData(reqDTO, convertService, reqDTO.getLocation(), startDate, endDate);
} }
private String fixBrand(String brand) { private String fixBrand(String brand) {
......
...@@ -21,7 +21,8 @@ public interface CapacityQueryService { ...@@ -21,7 +21,8 @@ public interface CapacityQueryService {
* @param endDate 结束日期 * @param endDate 结束日期
* @return 满足对应技能工作队的容量(三种类型与分站绑定) * @return 满足对应技能工作队的容量(三种类型与分站绑定)
*/ */
Result<CapacityQueryDTO.Result> matchCapacityData(List<CapacityQueryDTO.Service> services, Location location, LocalDate beginDate, LocalDate endDate); Result<CapacityQueryDTO.Result> matchCapacityData(CapacityQueryDTO.Request request,
List<CapacityQueryDTO.Service> services, Location location, LocalDate beginDate, LocalDate endDate);
/** /**
......
...@@ -92,7 +92,8 @@ public class CapacityQueryServiceImpl implements CapacityQueryService { ...@@ -92,7 +92,8 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
private EngineerSliceUsedCapacityDao engineerSliceUsedCapacityDao; private EngineerSliceUsedCapacityDao engineerSliceUsedCapacityDao;
@Override @Override
public Result<CapacityQueryDTO.Result> matchCapacityData(List<CapacityQueryDTO.Service> services, Location location, public Result<CapacityQueryDTO.Result> matchCapacityData(CapacityQueryDTO.Request request,
List<CapacityQueryDTO.Service> services, Location location,
LocalDate beginDate, LocalDate endDate) { LocalDate beginDate, LocalDate endDate) {
//1:根据经纬度分单获取面 //1:根据经纬度分单获取面
...@@ -174,6 +175,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService { ...@@ -174,6 +175,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
} }
result.setDatas(datas); result.setDatas(datas);
result.setParams(request);
return Result.success(result); return Result.success(result);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!