From 20bf9973fc80831edd76eef68684c2390b2ad867 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 13 三月 2026 10:03:28 +0800
Subject: [PATCH] fix: 产品规格增加物料编号、(规格 + 编号)的筛选
---
src/main/java/com/ruoyi/productionPlan/service/impl/ProductionPlanServiceImpl.java | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/src/main/java/com/ruoyi/productionPlan/service/impl/ProductionPlanServiceImpl.java b/src/main/java/com/ruoyi/productionPlan/service/impl/ProductionPlanServiceImpl.java
index 86d6439..e2c41db 100644
--- a/src/main/java/com/ruoyi/productionPlan/service/impl/ProductionPlanServiceImpl.java
+++ b/src/main/java/com/ruoyi/productionPlan/service/impl/ProductionPlanServiceImpl.java
@@ -389,7 +389,6 @@
plan.setCustomerName(formData.getString("textField_lbkozohg"));
String materialCode = row.getString("textField_l9xo62q5");
- plan.setMaterialCode(materialCode);
// 鏍规嵁鐗╂枡缂栫爜鏌ヨ鐗╂枡淇℃伅琛紝鍏宠仈鐗╂枡ID
if (StringUtils.isNotEmpty(materialCode)) {
LambdaQueryWrapper<ProductMaterialSku> skuQueryWrapper = new LambdaQueryWrapper<>();
@@ -397,15 +396,6 @@
ProductMaterialSku sku = productMaterialSkuService.getOne(skuQueryWrapper);
if (sku != null) {
plan.setProductMaterialSkuId(sku.getId());
- if (sku.getMaterialId() != null) {
- // 璁剧疆浜у搧鍚嶇О
- ProductMaterial material = productMaterialService.getById(sku.getMaterialId());
- if (material != null) {
- plan.setProductName(material.getMaterialName());
- }
- }
- // 璁剧疆瑙勬牸鍨嬪彿
- plan.setProductSpec(sku.getSpecification());
}
}
@@ -563,13 +553,6 @@
ProductMaterialSku sku = productMaterialSkuService.getOne(skuQueryWrapper);
if (sku != null) {
entity.setProductMaterialSkuId(sku.getId());
- if (sku.getMaterialId() != null) {
- ProductMaterial material = productMaterialService.getById(sku.getMaterialId());
- if (material != null) {
- entity.setProductName(material.getMaterialName());
- }
- }
- entity.setProductSpec(sku.getSpecification());
}
}
--
Gitblit v1.9.3