Commit 744f5747 by wangli

修改

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