| | |
| | | |
| | | /** |
| | | * 司机响应改派申请 |
| | | * @param reassignId |
| | | * @param reassignIds |
| | | * @param responseType |
| | | * @param request |
| | | * @return |
| | |
| | | @PostMapping("/api/orderCrossCity/respondReassign") |
| | | @ApiOperation(value = "司机响应改派申请(跨城)", tags = {"司机端-改派"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "改派ID", name = "reassignId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "改派ID列表(逗号分隔)", name = "reassignIds", required = true, dataType = "string"), |
| | | @ApiImplicitParam(value = "响应类型(1=同意,2=拒绝)", name = "responseType", required = true, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil respondReassign(Integer reassignId, Integer responseType, HttpServletRequest request) { |
| | | public ResultUtil respondReassign(String reassignIds, Integer responseType, HttpServletRequest request) { |
| | | try { |
| | | Integer driverId = ShiroKit.getUser().getId(); |
| | | return reassignService.respondReassign(reassignId, driverId, responseType); |
| | | return reassignService.respondReassignBatch(reassignIds, driverId, responseType); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return ResultUtil.error("操作失败"); |