xiaojiao
2025-12-28 44b83f33ff3a35edced78d89927a734f19de81ba
ÏîÄ¿´úÂë/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(() =>
                {