From 62e9b968c6f6a624b8d633c3c9551f1c814ea6e4 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 01 四月 2026 16:31:23 +0800
Subject: [PATCH] 生产计划追踪进度2.0
---
src/main/resources/mapper/productionPlan/ProductionPlanMapper.xml | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/productionPlan/ProductionPlanMapper.xml b/src/main/resources/mapper/productionPlan/ProductionPlanMapper.xml
index f7a3f17..e86b7d2 100644
--- a/src/main/resources/mapper/productionPlan/ProductionPlanMapper.xml
+++ b/src/main/resources/mapper/productionPlan/ProductionPlanMapper.xml
@@ -128,4 +128,18 @@
</foreach>
ORDER BY pp.id ASC
</select>
+ <select id="selectProductionPlanDtoById"
+ resultType="com.ruoyi.productionPlan.dto.ProductionPlanDto">
+ SELECT
+ pp.*,
+ pms.material_code AS materialCode,
+ pms.model,
+ pms.product_id AS productMaterialId,
+ pm.product_name AS productName,
+ pm.unit
+ FROM production_plan pp
+ left join product_material_sku pms on pp.product_material_sku_id = pms.id
+ left join product_material pm on pms.product_id = pm.id
+ WHERE pp.id = #{productionPlanId}
+ </select>
</mapper>
--
Gitblit v1.9.3