| | |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | |
| | | Order orderData = orderClient.detail(order.getOrderId()).getData(); |
| | | |
| | | if(orderData.getState()==0 && (!order.getTime().equals(orderData.getTime()) || !order.getServerId().equals(orderData.getServerId()))){ |
| | | if(!order.getTime().equals(orderData.getTime()) || !order.getServerId().equals(orderData.getServerId())){ |
| | | // 修改sys_change_dispatch 为已改派 |
| | | dispatchClient.changeReason(order.getOrderId(),""); |
| | | } |
| | |
| | | |
| | | R<List<Order>> result = orderClient.excelExport(orderQueryRequest); |
| | | for (Order datum : result.getData()) { |
| | | datum.setServeName(around(datum.getServeName(), 1, datum.getServeName().length()-1)); |
| | | datum.setServerPhone(around(datum.getServerPhone(), 3, 4)); |
| | | if(StringUtils.hasLength(datum.getServerName())){ |
| | | datum.setServerName(datum.getServerName().charAt(0)+"***"); |
| | | } |
| | | if(StringUtils.hasLength(datum.getServerPhone())){ |
| | | datum.setServerPhone(around(datum.getServerPhone(), 3, 4)); |
| | | } |
| | | } |
| | | // 独立orderService |
| | | return orderService.excelExport(result.getData(), response); |
| | |
| | | |
| | | @Resource |
| | | private RedisService redisService; |
| | | @ApiOperation(value = "地图统计", tags = {"后台-订单管理-地图统计"}) |
| | | @ApiOperation(value = "地图统计", tags = {"后台-订单管理-地图统计[2.0]"}) |
| | | @PostMapping(value = "/map/works") |
| | | public R<List<MasterWorker>> map(String cityCode,String name) { |
| | | |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 批量修改订单时间 |
| | | * @param ids 站点多条id拼接 |
| | | */ |
| | | @ApiOperation(value = "订单列表-批量修改订单时间", tags = {"后台-订单管理[2.0]"}) |
| | | @GetMapping(value = "/batchOrderUpdateTime") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "多个id ',' 拼接", name = "ids", dataType = "String", required = true), |
| | | @ApiImplicitParam(value = "修改上门时间", name = "time", dataType = "String", required = true), |
| | | }) |
| | | public R<Boolean> batchOrderUpdateTime(@RequestParam("ids") String ids, @RequestParam("time") String time) { |
| | | orderClient.batchUpdateTime(ids, time); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 最简单的读的监听器 |