Commit 8010a744 by 丁伟峰

fix

1 parent a9172314
...@@ -140,12 +140,12 @@ public class EngineerController { ...@@ -140,12 +140,12 @@ public class EngineerController {
return res; return res;
} }
@PostMapping(value = "/engineer/schedule/gantt") @PostMapping("/engineer/schedule/gantt")
public Result<?> getEngineersGanttList(@Validated @RequestBody EngineersGanttReqDTO reqDTO) { public Result<?> getEngineersGanttList(@Validated @RequestBody EngineersGanttReqDTO reqDTO) {
log.info("getEngineersGanttList: {}", reqDTO); log.info("getEngineersGanttList: {}", reqDTO);
Result<?> res = null; Result<?> res = null;
try { try {
res = engineerService.getEngineersGanttList(reqDTO); res = engineerGanttService.getEngineersGanttList(reqDTO);
} catch (BusinessException e) { } catch (BusinessException e) {
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
...@@ -156,19 +156,7 @@ public class EngineerController { ...@@ -156,19 +156,7 @@ public class EngineerController {
public Result<?> getEngineerCalendar(@Validated EngineerCalendarDTO.Request reqDTO) { public Result<?> getEngineerCalendar(@Validated EngineerCalendarDTO.Request reqDTO) {
Result<?> res = null; Result<?> res = null;
try { try {
res = engineerService.getEngineersCalendar(reqDTO); res = engineerCalendarService.getEngineersCalendar(reqDTO);
} catch (BusinessException e) {
return Result.failed(e.getMessage());
}
return res;
}
@PostMapping("/engineer/schedule/gantt")
public Result<?> getEngineersGanttList(@Validated @RequestBody EngineersGanttReqDTO reqDTO) {
log.info("getEngineersGanttList: {}", reqDTO);
Result<?> res = null;
try {
res = engineerGanttService.getEngineersGanttList(reqDTO);
} catch (BusinessException e) { } catch (BusinessException e) {
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!