1.增加根据货架配置数据自动生成模组和库位的功能(纯后台)

2.发送指令异常时日志优化
This commit is contained in:
hehaibing-1996
2025-03-07 18:14:44 +08:00
parent 9e16a001c0
commit 05a66dc2d3
3 changed files with 135 additions and 1 deletions

View File

@ -103,6 +103,18 @@ namespace WCS.DAL.DbModels
[SugarColumn(ColumnName = "Bind_shelf_code", IsNullable = true, ColumnDescription = "串联绑定后的大货架编码")]
public string? BigShelfCode { get; set; } = string.Empty;
/// <summary>
/// 每块板子的灯数量
/// </summary>
[SugarColumn(ColumnName = "light_count", IsNullable = true, ColumnDescription = "每块板子的灯数量")]
public int LightCount { get; set; }
/// <summary>
/// 每块板子的灯数量
/// </summary>
[SugarColumn(ColumnName = "first_board_id", IsNullable = true, ColumnDescription = "左上角的板子id")]
public int FirtstBoardId { get; set; }
/// <summary>
/// 序号
/// </summary>

View File

@ -260,7 +260,8 @@ namespace WCS.BLL
}
catch (Exception ex)
{
Logs.Write("【发送指令时发生异常】" + ex.Message, LogsType.Instructions);
var clientIpHost = tcpClient.IP + ":" + tcpClient.Port;
Logs.Write($"【发送指令时发生异常{clientIpHost}】" + ex.Message, LogsType.Instructions);
//因异常断连时(网线已经被断了) 手动重连一次
if (ex is NotConnectedException)
{