From 1aac1c131fc59393d1482f12e7cf3a26ed950859 Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Wed, 18 Sep 2024 16:10:52 +0800 Subject: [PATCH] bug --- WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseDService.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseDService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseDService.cs index a0cfd351..fe2b5f15 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseDService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseDService.cs @@ -21,6 +21,8 @@ using Tnb.BasicData; using Tnb.ProductionMgr.Entities.Entity; using ModuleConst = Tnb.ProductionMgr.ModuleConst; using JNPF.Common.Dtos.VisualDev; +using JNPF.Common.Extension; +using JNPF.FriendlyException; using JNPF.VisualDev.Entitys; namespace Tnb.WarehouseMgr @@ -211,7 +213,7 @@ namespace Tnb.WarehouseMgr ["vsourcebillcode"] = wmsPurchaseH?.bill_code ?? "", ["lineno"] = wmsPurchaseOrderDs?.lineno ?? "", ["vfree1"] = erpExtendFields.Find(x => x.table_id == supplierId)?.supplier_id ?? "", - ["bpresent"] = wmsPurchaseD.gift==1, + ["flargess"] = wmsPurchaseD.gift==1, ["ntaxprice"] = wmsPurchaseD.price, }); @@ -240,6 +242,11 @@ namespace Tnb.WarehouseMgr // .SetColumns(x => x.is_check == isCheck) // .Where(x => carryIds.Contains(x.id)) // .ExecuteCommandAsync(); + + if (requestData.IsEmpty()) + { + throw Oops.Bah("没有请求数据"); + } BasFactoryConfig config = await _db.Queryable().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.BIPURL);