Commit 5d7e71c4 by 丁伟峰

与其他接口(工单列表)保持一致,按技术员名称排序返回

1 parent d655f4ab
...@@ -97,6 +97,9 @@ public class EngineerGanttServiceImpl implements EngineerGanttService { ...@@ -97,6 +97,9 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
// engineer.setErrorTip(); todo // engineer.setErrorTip(); todo
engineers.add(engineer); engineers.add(engineer);
} }
// 按技术员名称进行排序
engineers.sort(Comparator.comparing(EngineersGanttDTO.GanttChart::getEngineerName));
EngineersGanttDTO.Result res = new EngineersGanttDTO.Result(); EngineersGanttDTO.Result res = new EngineersGanttDTO.Result();
res.setDate(reqDTO.getDate()).setEngineers(engineers); res.setDate(reqDTO.getDate()).setEngineers(engineers);
return Result.success(res); return Result.success(res);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!