| | |
| | | |
| | | order.setTime(orderRequest.getTime()); |
| | | order.setAcceptTime(orderRequest.getAcceptTime()); |
| | | // order.setAcceptTime(new Date()); |
| | | // 师傅信息 |
| | | order.setServerId(orderRequest.getServerId()); |
| | | order.setServerName(orderRequest.getServerName()); |
| | |
| | | List<String> idList = Arrays.stream(ids.split(",")).collect(Collectors.toList()); |
| | | List<Order> list = orderService.lambdaQuery().in(Order::getId, idList).list(); |
| | | list.forEach(data -> data.setIsDelete(1)); |
| | | |
| | | List<ChangeDispatch> list1 = changeDispatchService.lambdaQuery().in(ChangeDispatch::getOrderId, idList).list(); |
| | | if (!list1.isEmpty()) { |
| | | list1.forEach(data -> data.setIsDelete(1)); |
| | | changeDispatchService.updateBatchById(list1); |
| | | } |
| | | return R.ok(orderService.updateBatchById(list)); |
| | | } |
| | | |