From cf47d288de5e1423e86386f1c7c452353b4e8a0a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 22 八月 2023 16:52:49 +0800
Subject: [PATCH] da

---
 server/src/main/java/doumeemes/service/ext/impl/MaterialDistributeExtServiceImpl.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/server/src/main/java/doumeemes/service/ext/impl/MaterialDistributeExtServiceImpl.java b/server/src/main/java/doumeemes/service/ext/impl/MaterialDistributeExtServiceImpl.java
index 2c9fc47..3c2fa44 100644
--- a/server/src/main/java/doumeemes/service/ext/impl/MaterialDistributeExtServiceImpl.java
+++ b/server/src/main/java/doumeemes/service/ext/impl/MaterialDistributeExtServiceImpl.java
@@ -10,6 +10,7 @@
 import doumeemes.dao.ext.MaterialDistributeExtMapper;
 import com.github.pagehelper.PageHelper;
 import com.github.pagehelper.PageInfo;
+import doumeemes.service.ext.ProceduresExtService;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.shiro.SecurityUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -25,6 +26,9 @@
 @Service
 public class MaterialDistributeExtServiceImpl implements MaterialDistributeExtService {
 
+
+    @Autowired
+    private ProceduresExtService proceduresExtService;
     @Autowired
     private MaterialDistributeExtMapper materialDistributeExtMapper;
 
@@ -50,6 +54,10 @@
                         mev.setUnionCategoryName(mev.getCmodelName());
                     }
                 }
+                if(mev.getHasBom() >0 && Constants.equalsInteger(pageWrap.getModel().getQueryType(),Constants.ONE)){
+                    //濡傛灉闇�瑕佹煡璇㈠伐鑹鸿矾绾垮伐搴�,鏌ヨbom鍏宠仈宸ヨ壓璺嚎鐨勬墍鏈夊伐搴�
+                    mev.setProcedureList(proceduresExtService.getListByMaterialId(mev.getId()));
+                }
             }
         }
         return PageData.from(new PageInfo<>(result));

--
Gitblit v1.9.3