| | |
| | | if (!orderLogisticsId.isEmpty()){ |
| | | double sum = 0; |
| | | for (OrderLogisticsSpread orderLogisticsSpread : orderLogisticsId) { |
| | | if (orderLogisticsSpread.getPayType() == 4) { |
| | | |
| | | if (orderLogisticsSpread.getPayType()!=null&&orderLogisticsSpread.getPayType() == 4) { |
| | | Double payMoney = orderLogisticsSpread.getPayMoney(); |
| | | sum = sum + payMoney; |
| | | } |
| | |
| | | } |
| | | return callbackResponse; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/taxi/updateEndAddress") |
| | | @ApiOperation(value = "处理乘客修改目的地【2.0】", tags = {"用户端-专车", "用户端-小件物流"}, notes = "") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "订单id", name = "orderId", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "订单类型", name = "orderType", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "状态(2=同意,3=拒绝)", name = "status", required = true, dataType = "int"), |
| | | @ApiImplicitParam(value = "语言", name = "language", required = true, dataType = "int"), |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | | public ResultUtil updateEndAddress(Integer orderId, Integer orderType, Integer status){ |
| | | switch (orderType){ |
| | | case 1: |
| | | orderPrivateCarService.updateEndAddress(orderId, status); |
| | | break; |
| | | case 4: |
| | | orderLogisticsService.updateEndAddress(orderId, status); |
| | | break; |
| | | } |
| | | return ResultUtil.success(); |
| | | } |
| | | } |