From 44b83f33ff3a35edced78d89927a734f19de81ba Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期日, 28 十二月 2025 18:00:02 +0800
Subject: [PATCH] 更改空托入库,更改出库测量对应楼层禁用,
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/InboundLogic.cs | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/InboundLogic.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/InboundLogic.cs"
index 7d0d9c8..19c31fb 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/InboundLogic.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToWCS/Partial/InboundLogic.cs"
@@ -448,14 +448,12 @@
Dt_container_head head = Dt_container_headRepository.Instance.FindFirst(r => r.containerhead_barcode == barcode);
if (null != head)
return content.Error("褰撳墠鎵樼洏鍙峰凡瀛樺湪搴撻噷,璇锋鏌�:" + barcode);
- Dt_container_head_hty container_Head_Hty = Dt_container_head_htyRepository.Instance.Find(x => x.containerhead_barcode == barcode
- && x.containerhead_operatetype == "empty" && x.containerhead_creator != "WCS")
- .OrderByDescending(x => x.containerhead_finishtime).First();
+ Dt_EmptyPallet dt_Empty = Dt_EmptyPalletRepository.Instance.Find(x => x.EmptyPallet_name == barcode).FirstOrDefault();
decimal weight = 0;
- if (null != container_Head_Hty)
+ if (null != dt_Empty)
{
- weight = string.IsNullOrEmpty(container_Head_Hty.containerhead_palletweight) ? 0 : decimal.Parse(container_Head_Hty.containerhead_palletweight);
+ weight = string.IsNullOrEmpty(dt_Empty.EmptyPallet_palletweight) ? 0 : decimal.Parse(dt_Empty.EmptyPallet_palletweight);
}
content = Dt_taskinfoRepository.Instance.DbContextBeginTransaction(() =>
{
--
Gitblit v1.9.3