dengjunjie
44 分钟以前 441b6f8d257a01b2998253ef0515a201777d7e68
ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs
@@ -49,10 +49,13 @@
                        if (traytype == 4)
                        {
                            var Barcode = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.trayBarcode).Replace("\0", "");
                            if (string.IsNullOrEmpty(Barcode)) throw new Exception("产线申请托盘号为空!");
                            var task = _taskRepository.QueryFirst(x => x.PalletCode == Barcode);
                            if (task == null)
                            {
                                var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo).Replace("\0", "");
                                if (string.IsNullOrEmpty(batchNo)) throw new Exception("产线申请批号为空!");
                                WriteDebug($"{ProductionLine.DeviceName}申请入库", $"托盘号【{Barcode}】,批柜号【{batchNo}】");
                                ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                                {
                                    stationCode = ProductionLine.DeviceCode,
@@ -72,7 +75,7 @@
            }
            catch (Exception ex)
            {
                Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString());
                //Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString());
            }
            return Task.CompletedTask;
        }