Product_Wms/WcsMain/Constant/ExtendMethod/AppStackerExtendMethod.cs

23 lines
509 B
C#
Raw Permalink Normal View History

2024-10-07 09:51:55 +08:00
using WcsMain.DataBase.TableEntity;
2024-11-15 11:51:41 +08:00
namespace WcsMain.Constant.ExtendMethod;
2024-10-07 09:51:55 +08:00
/// <summary>
/// 堆垛机操作扩展方法
/// </summary>
public static class AppStackerExtendMethod
{
/// <summary>
/// 查找运行使用的 PLC
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static List<AppStacker> Open(this List<AppStacker>? value)
{
2024-11-15 11:51:41 +08:00
if (value == default) return [];
2024-10-07 09:51:55 +08:00
return value.FindAll(f => f.StackerStatus == 1);
}
}