Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/Robotaxi
| | |
| | | /** |
| | | * 点位删除 |
| | | */ |
| | | @GetMapping("/api/v1/point/deletePoint/{ids}") |
| | | R deletePoint(@PathVariable("ids") String ids); |
| | | @GetMapping("/api/v1/point/deletePoint") |
| | | R deletePoint( String ids); |
| | | |
| | | /** |
| | | * 启用/禁用 |
| | |
| | | /** |
| | | * 批量删除点位 |
| | | */ |
| | | @GetMapping("/deletePoint/{ids}") |
| | | @GetMapping("/deletePoint") |
| | | @ResponseBody |
| | | @ApiOperation(value = "删除点位") |
| | | public R deletePoint(@PathVariable("ids") String ids) { |
| | | public R deletePoint( String ids) { |
| | | xpPointClient.deletePoint(ids); |
| | | return R.ok(); |
| | | } |
| | |
| | | /** |
| | | * 批量删除点位 |
| | | */ |
| | | @GetMapping("/deletePoint/{ids}") |
| | | @GetMapping("/deletePoint") |
| | | @ResponseBody |
| | | @ApiOperation(value = "删除点位") |
| | | public R deletePoint(@PathVariable("ids") String ids) { |
| | | public R deletePoint(String ids) { |
| | | xpPointService.removeBatchByIds(Arrays.stream(ids.split(",")).map(Long::parseLong).collect(Collectors.toList())); |
| | | return R.ok(); |
| | | } |
| | |
| | | res.setKilometer(BigDecimal.valueOf(order.getMileageKilometers())); |
| | | LocalDateTime createTime = order.getCreateTime(); |
| | | LocalDateTime tripEnd = order.getTripEnd(); |
| | | if (tripEnd==null){ |
| | | tripEnd = LocalDateTime.now(); |
| | | order.setTripEnd(tripEnd); |
| | | this.updateById(order); |
| | | } |
| | | // 计算行程时间 单位分钟 |
| | | // 计算时间差 |
| | | Duration durationBetween = Duration.between(createTime, tripEnd); |