| | |
| | | public R<String> excelExport(OrderQueryRequest orderQueryRequest, HttpServletResponse response) { |
| | | try { |
| | | response.setCharacterEncoding(Constants.UTF8); |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setHeader("Access-Control-Expose-Headers", "Content-disposition"); |
| | | response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(Constants.EXCEL_ORDER_FILE_NAME, CharEncoding.UTF_8) + ".xlsx"); |
| | | response.setHeader("Content-Disposition", "attachment;filename=" + |
| | | URLEncoder.encode(Constants.EXCEL_ORDER_FILE_NAME, CharEncoding.UTF_8) + ".xlsx"); |
| | | } catch (UnsupportedEncodingException e) { |
| | | return R.fail("excel导出失败!"); |
| | | } |
| | |
| | | ServeRecord serveRecord = serveRecordService.lambdaQuery().eq(ServeRecord::getOrderId, order.getId()) |
| | | .eq(ServeRecord::getIsDelete, 0).one(); |
| | | // 师傅路线轨迹 |
| | | List<ServeCoordinate> serveCoordinateList = serveCoordinateService.lambdaQuery().eq(ServeCoordinate::getWorkerId, order.getServerId()) |
| | | .eq(ServeCoordinate::getIsDelete, 0).orderByDesc(ServeCoordinate::getCreateTime).list(); |
| | | List<ServeCoordinate> serveCoordinateList = serveCoordinateService.lambdaQuery() |
| | | .eq(ServeCoordinate::getWorkerId, order.getServerId()) |
| | | .eq(ServeCoordinate::getIsDelete, 0) |
| | | .eq(ServeCoordinate::getOrderId, order.getId()) |
| | | .orderByDesc(ServeCoordinate::getCreateTime).list(); |
| | | OrderByServeRecordVO orderByServeRecord = new OrderByServeRecordVO(); |
| | | orderByServeRecord.setAcceptOrderTime(order.getAcceptTime()); |
| | | orderByServeRecord.setReachTime(order.getTime()); |
| | |
| | | } |
| | | OrderByServeVO orderByServe = new OrderByServeVO(); |
| | | orderByServe.setServeName(recoveryServe.getServeName()); |
| | | orderByServe.setCover(recoveryServe.getCover()); |
| | | orderByServe.setSupClassify(recoveryClassify.getSupClassify()); |
| | | orderByServe.setSubClassify(recoveryClassify.getSubClassify()); |
| | | orderByServe.setPrice(order.getServePrice()); |
| | |
| | | // 订单信息 |
| | | OrderInfoVO orderInfo = new OrderInfoVO(); |
| | | orderInfo.setOrderNumber(order.getOrderNumber()); |
| | | orderInfo.setPlaceOrderTime(order.getTime()); |
| | | orderInfo.setPlaceOrderTime(order.getCreateTime()); |
| | | orderInfo.setState(order.getState()); |
| | | result.setOrderInfo(orderInfo); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public OrderPageCountVO orderPageCount() { |
| | | List<Order> orderList = baseMapper.orderPageCount(); |
| | | public OrderPageCountVO orderPageCount(OrderQueryRequest orderQueryRequest) { |
| | | List<Order> orderList = baseMapper.orderPageCount(orderQueryRequest); |
| | | int total = 0; |
| | | int toBeDispatched = 0; |
| | | int stayDoorstep = 0; |