Commit 5d33774c by wangli

修改

1 parent 990b2a51
......@@ -22,7 +22,7 @@ public class ScheduleController {
public Result<?> getScheduleOverview(@RequestParam long page, @RequestParam long size, @RequestParam String date,
@RequestParam String levelType, @RequestParam("levelValue") List<String> levelIds) {
Result<?> res = null;
try{
try {
res = scheduleService.getScheduleOverview(page, size, date, levelType, levelIds);
} catch (BusinessException e) {
return Result.failed(e.getMessage());
......
......@@ -22,6 +22,7 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@Service
public class ScheduleServiceImpl implements ScheduleService {
......@@ -162,7 +163,10 @@ public class ScheduleServiceImpl implements ScheduleService {
dynamics.add(new LabelValueDTO("交通工具", "电动车"));
List<String> orderIds = orderAppointments.stream().map(OrderAppointment::getOrderId).collect(Collectors.toList());
List<OrderRequest> orderRequests = orderRequestMPDao.selectByOrderIds(orderIds);
List<OrderRequest> orderRequests = new ArrayList<>();
if(orderIds!=null && !orderIds.isEmpty()) {
orderRequests = orderRequestMPDao.selectByOrderIds(orderIds);
}
List<ScheduleEngineerOverviewResp.Order> orders = new ArrayList<>();
for (OrderRequest o : orderRequests) {
ScheduleEngineerOverviewResp.Order item = new ScheduleEngineerOverviewResp.Order();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!