新增单灯货架亮灯

This commit is contained in:
陶坤
2024-05-23 13:39:23 +08:00
parent 2c99ebfb73
commit 4e42986c17
4 changed files with 307 additions and 24 deletions

View File

@ -1,4 +1,5 @@
using System;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
@ -177,6 +178,19 @@ namespace WCS.BLL.Manager
//后台启动时给所有板子、警示灯发送复位操作 保持状态一致
public static void InitStatus(TCPClient tcpClient)
{
List<ModuleInfo> MI = DbHelp.db.Queryable<ModuleInfo>().Where(it => it.CleintIp == tcpClient.RemoteIPHost).ToList();
if (MI.Count != 0)
{
List<ShelfInfo> SI = DbHelp.db.Queryable<ShelfInfo>().Where(it => it.ShelfCode == MI[0].ShelfCode).ToList();
if (SI.Count != 0)
{
if (SI[0].ShelfTypeName == "信息化货架")
{
return;
}
}
}
Task.Run(() =>
{
try