From 957a7ac4957da4f520ea0cd5fe74d1bbf6b308a8 Mon Sep 17 00:00:00 2001 From: hy2250089 Date: Mon, 6 Jan 2020 17:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=8A=A0=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=9C=8D=E5=8A=A1=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProductProcessServiceImpl.java | 17 ++++---- .../manage/web/OtherServiceController.java | 42 +++++++++++++++++++ 2 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 wms-produce-manage/src/main/java/com/deer/wms/produce/manage/web/OtherServiceController.java diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java index 0dc460e..431cd7d 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/ProductProcessServiceImpl.java @@ -198,8 +198,9 @@ public class ProductProcessServiceImpl extends AbstractService processHoList = productProcessHo.getProcessHoList(); List processList; List processMaterialsList; - if(null != processHoList) { + if((null!=processHoList) && (0!=processHoList.size())) { processList = new ArrayList(processHoList.size()); + processMaterialsList = new ArrayList(); for (ProcessHo processHo : processHoList) { MtAloneProcess process = new MtAloneProcess(); BeanUtils.copyProperties(processHo, process); @@ -213,15 +214,8 @@ public class ProductProcessServiceImpl extends AbstractService(); - for (int i=0; i processMaterialsVoList = processHo.getProcessMaterialsVoList(); - if(null != processMaterialsVoList) { + if((null!=processMaterialsVoList) && (0!=processMaterialsVoList.size())){ for (ProcessMaterialsVo processMaterialsVo : processMaterialsVoList) { ProcessMaterials processMaterials = new ProcessMaterials(); BeanUtils.copyProperties(processMaterialsVo, processMaterials); @@ -238,7 +232,10 @@ public class ProductProcessServiceImpl extends AbstractService