From dc3f2c854f6c4abfed155c40d75c6f66fd7fde0f Mon Sep 17 00:00:00 2001 From: yangsb Date: Sun, 28 Apr 2024 11:38:22 +0800 Subject: [PATCH] =?UTF-8?q?sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/plate/PlateMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plate/PlateMapper.xml b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plate/PlateMapper.xml index 0976190b9..b92678619 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plate/PlateMapper.xml +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plate/PlateMapper.xml @@ -7,7 +7,8 @@ c.goods_name, c.material, c.color, c.goods_id from order_plate a LEFT JOIN order_plan_item p on a.id = p.item_id - LEFT JOIN `order` b on a.order_id = b.id + LEFT JOIN order_item oi on p.item_id = oi.id + LEFT JOIN `order` b on oi.order_id = b.id LEFT JOIN order_goods c on a.order_id = c.order_id p.id is null