From 72740312c93ba506501542ed20406c9e82a310d9 Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Wed, 8 Apr 2026 12:02:46 +0800 Subject: [PATCH] =?UTF-8?q?orders=E8=A1=A8parent=5Fno=E6=94=B9=E4=B8=BApar?= =?UTF-8?q?ent=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../executor/controller/admin/plate/PlateController.java | 7 +++++++ .../src/main/resources/mapper/order/OrderMapper.xml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plate/PlateController.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plate/PlateController.java index f29ea99e2..cb65d28f7 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plate/PlateController.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plate/PlateController.java @@ -174,4 +174,11 @@ public class PlateController { public CommonResult getOrderInfoByPlateNo(@PathVariable String plateNo) { return success(plateService.getOrderInfoByPlateNo(plateNo)); } + + @PostMapping("/wechat/miniprogram/cadview/order/info/{plateNo:[A-Fa-f0-9]{6}[A-Za-z0-9]{11}}") + @Operation(summary = "微信小程序根据板编号获取单板所属订单信息") + @Parameter(name = "plateNo", description = "板编号", required = true) + public CommonResult getOrderDetailsByPlateNo(@PathVariable String plateNo) { + return success(plateService.getOrderInfoByPlateNo(plateNo)); + } } \ No newline at end of file diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/order/OrderMapper.xml b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/order/OrderMapper.xml index a3aa7ea3d..8b6d9e71e 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/order/OrderMapper.xml +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/order/OrderMapper.xml @@ -105,7 +105,7 @@ o.id, o.api_order_id, o.customer, - o.parent_no, + o.parent_id, o.organ_id, o.status, o.order_date, @@ -133,7 +133,7 @@ o.id, o.api_order_id, o.customer, - o.parent_no, + o.parent_id, o.organ_id, o.status, o.order_date,