wxw
2025-11-13 0caa59dda5ede8b93c4fd47f095bbf716f57383b
Wms/Wms/Controllers/DownApiController.cs
@@ -818,7 +818,7 @@
                }
                _rcsserver.CleanPallet(pallmsg, _config.AgvHost + _config.GenAgvSchedulingTask);
                result.Success = 0;
                result.Message = "叫桶成功!";
                result.Message = "操作成功!";
                return Ok(result);
            }
            catch (Exception e)
@@ -828,6 +828,33 @@
                return Ok(result);
            }
        }
        /// <summary>
        /// LIMS质量结果下发
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        [HttpPost]
        public IActionResult QualityResult(QualityResultVm model)
        {
            var logStr = $@".\log\LIMS\LIMS质量结果下发" + DateTime.Now.ToString("yyyyMMdd") + ".txt";
            ErpModel result = new ErpModel { Success = -1, Message = "" };
            try
            {
                var jsonData = JsonConvert.SerializeObject(model);
                LogFile.SaveLogToFile($"LIMS质量结果下发-请求报文:( {jsonData} ),", logStr);
                _rcsserver.QualityResult(model);
                result.Success = 0;
                result.Message = "操作成功!";
                return Ok(result);
            }
            catch (Exception e)
            {
                LogFile.SaveLogToFile($"LIMS质量结果下发异常:( {e.Message} ),", logStr);
                result.Message = e.Message;
                return Ok(result);
            }
        }
        /// <summary>
        /// 入库单据下发