From f19647144cb068b9fc539f50dfa7eca362f82b35 Mon Sep 17 00:00:00 2001 From: hy2250089 Date: Thu, 9 Jan 2020 17:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E7=AE=A1=E7=90=86=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=AF=B9=E6=8E=A5=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/mapper/MaterialsInfoMapper.xml | 18 ++++++-- .../impl/MaterialsInfoServiceImpl.java | 4 +- .../manage/web/MaterialsInfoController.java | 14 +++--- .../manage/web/OtherServiceController.java | 44 ------------------- 4 files changed, 24 insertions(+), 56 deletions(-) delete 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/mapper/MaterialsInfoMapper.xml b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MaterialsInfoMapper.xml index 546e98f..a926321 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MaterialsInfoMapper.xml +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/mapper/MaterialsInfoMapper.xml @@ -25,8 +25,11 @@ + + + @@ -39,12 +42,16 @@ SELECT + materials.id, + materials.code, materials.create_time, materials.materials_name, + materials.parent_id, (SELECT m.materials_name FROM mt_alone_materials_info m - WHERE m.id = materials.parent_id ) parent_name, + WHERE m.id = materials.parent_id) parent_name, + materials.unit_id, materials.specification, materials.memo, + materials.supplier_id, IFNULL(stock.quantity,0) quantity, stock.position_name, unit.unit_name, @@ -106,7 +118,7 @@ AND materials.id = #{materialsId} - AND com.company_id = #{companyId} + AND materials.company_id = #{companyId} diff --git a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MaterialsInfoServiceImpl.java b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MaterialsInfoServiceImpl.java index 43e8509..c68f750 100644 --- a/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MaterialsInfoServiceImpl.java +++ b/wms-produce-manage/src/main/java/com/deer/wms/produce/manage/service/impl/MaterialsInfoServiceImpl.java @@ -60,7 +60,7 @@ public class MaterialsInfoServiceImpl extends AbstractService materialsOutgoingLogList = materialsOutgoingLogService.findListByOneMaterial(params); if((null!=materialsOutgoingLogList) && (materialsOutgoingLogList.size()!=0)){ @@ -71,7 +71,7 @@ public class MaterialsInfoServiceImpl extends AbstractService