分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-03-25 65151e7ac63e10113ecbeeabf302a4240bf08e97
´úÂë¹ÜÀí/WMS/WMS_Server/WIDESEA_WMS/Services/system/Partial/dt_stationinfoService.cs
@@ -84,13 +84,13 @@
                     .ExecuteAffrows();
                var msg = data.type == 1 ? "启用" : "禁用";
                WriteDBLog.Write($"手动{msg}站点 ", $"{string.Join('、', updateList.Select(t => t.stationCode).ToArray())}", LogState.Sucess, "WCS", UserContext.Current.UserName);
                WriteDBLog.Write($"手动{msg}站点 ", $"{string.Join('、', updateList.Select(t => t.stationCode).ToArray())}", LogState.Sucess, "WMS", UserContext.Current.UserName);
                webResponse.OK();
            }
            catch (Exception ex)
            {
                WriteDBLog.Write($"手动启用或禁用站点 ", new { é”™è¯¯ä¿¡æ¯ = ex.Message, æ•°æ® = json }, LogState.Error, "WCS", UserContext.Current.UserName);
                WriteDBLog.Write($"手动启用或禁用站点 ", new { é”™è¯¯ä¿¡æ¯ = ex.Message, æ•°æ® = json }, LogState.Error, "WMS", UserContext.Current.UserName);
                webResponse.Error(ex.Message);
            }
            return webResponse;
@@ -137,7 +137,8 @@
                station.tray_status = string.Empty;
                station.bindSN = string.Empty;
                station.quantity = 0;
                station.tray_type=string.Empty;
                if (!station.stationCode.Contains("S") && !station.stationCode.Contains("X") && !station.stationCode.Contains("W01001004") && !station.stationCode.Contains("W01001005"))
                    station.tray_type = string.Empty;
            }
            var count = _repository.Update(station, true);
            if (count > 0)