Commit 744f5747 by wangli

修改

1 parent ff0203d6
...@@ -19,28 +19,28 @@ import java.time.LocalDate; ...@@ -19,28 +19,28 @@ import java.time.LocalDate;
@RequestMapping("/pea-order") @RequestMapping("/pea-order")
public class WorkbenchController { public class WorkbenchController {
@Autowired @Autowired
WorkbenchService workbenchService; WorkbenchService workbenchService;
@GetMapping("/workbench/serviceOrder/change/list") @GetMapping("/workbench/serviceOrder/change/list")
public Result<?> orderChangeList(@Validated OrderChangeListReqDTO reqDTO) { public Result<?> orderChangeList(@Validated OrderChangeListReqDTO reqDTO) {
Result<?> res = null; Result<?> res = null;
try { try {
res = workbenchService.getOrderChangeList(reqDTO); res = workbenchService.getOrderChangeList(reqDTO);
} catch (BusinessException e) { } catch (BusinessException e) {
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
return res; return res;
} }
@GetMapping("/workbench/summary") @GetMapping("/workbench/summary")
public Result<?> workbenchSummary(@RequestParam String levelType, @RequestParam String levelValue, @RequestParam LocalDate date) { public Result<?> workbenchSummary(@RequestParam String levelType, @RequestParam String levelValue, @RequestParam LocalDate date) {
Result<?> res = null; Result<?> res = null;
try{ try {
res = workbenchService.getWorkbenchSummary(levelType, levelValue, date); res = workbenchService.getWorkbenchSummary(levelType, levelValue, date);
} catch (BusinessException e) { } catch (BusinessException e) {
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
return res; return res;
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!