| | |
| | | package com.ruoyi.admin.controller; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.admin.entity.*; |
| | | import com.ruoyi.admin.netty.NettyChannelMap; |
| | |
| | | |
| | | |
| | | |
| | | // @RequiresPermissions({"reassignment_edit","order_edit"}) |
| | | |
| | | @ApiOperation(value = "订单列表-编辑", tags = {"后台-订单管理"}) |
| | | @PostMapping(value = "/edit") |
| | |
| | | Site site = siteService.lambdaQuery() |
| | | .eq(Site::getId, order.getSiteId()) |
| | | .eq(Site::getIsDelete, 0).one(); |
| | | order.setSiteName(site.getSiteName()); |
| | | if (null != site) { |
| | | order.setSiteName(site.getSiteName()); |
| | | } |
| | | |
| | | // 师傅信息 |
| | | if (null != order.getServerId()) { |
| | | MasterWorker masterWorker = masterWorkerService.lambdaQuery() |
| | |
| | | }else { |
| | | order.setOrderMoney(one.getRecoveryPrice()); |
| | | } |
| | | order.setServeName(recoveryServe.getServeName()); |
| | | // 后台订单 |
| | | order.setType(Constants.ONE); |
| | | Boolean data = orderClient.edit(order).getData(); |
| | |
| | | @ApiImplicitParam(value = "改派原因", name = "applyReason", dataType = "String") |
| | | }) |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R<String> reassignment(@RequestParam Integer type, @RequestParam String orderId, |
| | | public R<String> reassignment(@RequestParam Integer type, @RequestParam String orderIds, |
| | | @RequestParam Integer workerId, String applyReason) { |
| | | String[] split = orderIds.split(","); |
| | | for (String orderId : split) { |
| | | |
| | | MasterWorker masterWorker = masterWorkerService.lambdaQuery() |
| | | .eq(MasterWorker::getId, workerId) |
| | | .eq(MasterWorker::getIsDelete, 0).one(); |
| | |
| | | // } catch (IOException e) { |
| | | // return R.fail("订单推送失败!"); |
| | | // } |
| | | return result ? R.ok() : R.fail(); |
| | | } |
| | | |
| | | return R.ok() ; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | @ApiOperation(value = "ocr识别", tags = {"后台-首页"}) |
| | | @PostMapping (value = "/ocr") |
| | | public R<AddressDto> ocr(OcrBase ocrBase) { |
| | | return R.ok(DescribeInstances.orcr(ocrBase.getBase())); |
| | | public R<JSONObject> ocr(String ocrAddress) { |
| | | return R.ok(DescribeInstances.ocr(ocrAddress)); |
| | | } |
| | | |
| | | /** |