From 926b36713b93eb5a823f8f91b16f89d553a85f58 Mon Sep 17 00:00:00 2001 From: liangkun Date: Mon, 12 Jul 2021 18:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=AE=A1=E6=89=B9=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=96=B9=E6=B3=95=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=87=87=E8=B4=AD=E7=94=B3=E8=AF=B7=E8=A1=A8=E7=A9=BA?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ass_AssetsInfoApplyService.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs index aa8241f23..f8a158480 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs @@ -277,12 +277,13 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem //读入库申请记录 var assinfoapp = db.FindEntity(m => m.AAProcessId == processId); var assPurchase = db.FindEntity(a => a.PId == assinfoapp.PId); - //通知申请人 - var purchaseApplyEntity = db.FindEntity(a => a.PAId == assPurchase.PAId); - purchaseApplyEntity.PIsInStorage = "已入库"; - db.Update(purchaseApplyEntity); - if (null != assPurchase) + if (assPurchase != null) { + //通知申请人 + var purchaseApplyEntity = db.FindEntity(a => a.PAId == assPurchase.PAId); + purchaseApplyEntity.PIsInStorage = "已入库"; + db.Update(purchaseApplyEntity); + assPurchase.PStoregeStatus = 2; db.Update(assPurchase); } @@ -376,7 +377,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem db.Insert(ass_assetschangeitem); //更新总库存 assinfoitem.AStock = assinfoitem.AStock + assitemapp.AAIStock; - assinfoitem.AAssType = assPurchase.PAssType; + //assinfoitem.AAssType = assPurchase.PAssType; db.Update(assinfoitem); if (insertassinfoitem.AIIsInStorage == false) {