| | |
| | | } |
| | | |
| | | @Override |
| | | public R<String> call(Integer orderId) { |
| | | return R.fail(cause.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<Boolean> changeOrderState(String orderId, Integer state) { |
| | | return R.fail(cause.getMessage()); |
| | | } |
| | |
| | | */ |
| | | @GetMapping(value = "/order/batchUpdateTime") |
| | | R<Boolean> batchUpdateTime(@RequestParam("ids")String ids,@RequestParam("time")String time); |
| | | /** |
| | | * 打电话 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @GetMapping(value = "/order/call") |
| | | R<String> call(@RequestParam("orderId")Integer orderId); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation(value = "打电话", tags = {"师傅端-打电话[2.0]"}) |
| | | @GetMapping(value = "/call") |
| | | public R<String> call(@RequestParam Integer orderId) { |
| | | public R<String> call(@RequestParam("orderId") Integer orderId) { |
| | | Order order = orderService.getById(orderId); |
| | | if(Objects.isNull(order)){ |
| | | return R.fail("订单不存在"); |
| | |
| | | // return update ? R.ok("修改成功!") : R.fail("修改失败!"); |
| | | // } |
| | | |
| | | /** |
| | | * 师傅端-打电话 |
| | | */ |
| | | @ApiOperation(value = "打电话", tags = {"师傅端-打电话[2.0]"}) |
| | | @GetMapping(value = "/workerCall") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", dataType = "Integer", required = true), |
| | | }) |
| | | public R<String> workerCall(@RequestParam Integer orderId) { |
| | | orderClient.call(orderId); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |