11
tjx
2025-11-24 d219a99183b36c8772f2b521204ead5e6918586b
11
已修改1个文件
9 ■■■■ 文件已修改
StandardPda/MES.Service/service/Warehouse/MesInvItemStocksManager.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
StandardPda/MES.Service/service/Warehouse/MesInvItemStocksManager.cs
@@ -327,6 +327,11 @@
                decimal messageId = 0;
                string taskCode = "";
                // 根据条码查询XB_RACKING_TASK_SYXT_LOG表,查询max(PALLETCODE)
                var maxPalletCode = Db.Queryable<XbRackingTaskSyxtLog>()
                    .Where(x => x.ItemBarcode == barcode)
                    .Max(x => x.PalletCode);
                try
                {
                    // 1. 查询该条码对应的库存信息,按物料和批号汇总
@@ -365,7 +370,7 @@
                    {
                        taskCode = taskCode,
                        taskType = "1",
                        palletCode = firstStock.StackCode ?? "",
                        palletCode = maxPalletCode ?? "",
                        widthType = "180",
                        station = "3"
                    };
@@ -432,7 +437,7 @@
                            CreateDate = DateTime.Now,
                            TaskCode = taskCode,
                            TaskType = "立库出库请求",
                            PalletCode = firstStock.StackCode,
                            PalletCode = maxPalletCode,
                            WidthType = 180,
                            MaterialName = firstStock.ItemName,
                            MaterialCode = firstStock.ItemNo,