From 48d66a079c307356997fb400d27907ff6d363b7b Mon Sep 17 00:00:00 2001
From: liudl <673013083@qq.com>
Date: 星期一, 20 一月 2025 08:35:37 +0800
Subject: [PATCH] 修改2楼分拣和1楼拆垛时获取拆垛信息接口

---
 Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs b/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs
index 5b6c957..ac08af5 100644
--- a/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs
+++ b/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs
@@ -5,19 +5,35 @@
 /// 鎶ヨ淇℃伅琛�
 /// </summary>
 [SugarTable("WCSAlarmInfo","鎶ヨ淇℃伅琛�")]
-public class WcsAlarmInfo  : EntityBaseData
+public class WcsAlarmInfo : EntityBaseData
 {
     /// <summary>
     /// PLCIP鍦板潃
     /// </summary>
+    [Required]
     [SugarColumn(ColumnName = "PlcIP", ColumnDescription = "PLCIP鍦板潃", Length = 20)]
-    public string? PlcIP { get; set; }
+    public string PlcIP { get; set; }
     
+    /// <summary>
+    /// PLCIP鍦板潃
+    /// </summary>
+    [Required]
+    [SugarColumn(ColumnName = "PlcPort", ColumnDescription = "PLCIP鍦板潃")]
+    public int PlcPort { get; set; }
+
+    /// <summary>
+    /// 宸ヤ綅鍙�
+    /// </summary>
+    [Required]
+    [SugarColumn(ColumnName = "StationNum", ColumnDescription = "宸ヤ綅鍙�", Length = 4)]
+    public string StationNum { get; set; }
+
     /// <summary>
     /// 鎶ヨ缂栧彿
     /// </summary>
+    [Required]
     [SugarColumn(ColumnName = "AlarmCode", ColumnDescription = "鎶ヨ缂栧彿", Length = 20)]
-    public string? AlarmCode { get; set; }
+    public string AlarmCode { get; set; }
     
     /// <summary>
     /// 鎶ヨ鎻忚堪
@@ -41,7 +57,7 @@
     /// 璁惧绫诲瀷
     /// </summary>
     [SugarColumn(ColumnName = "Type", ColumnDescription = "璁惧绫诲瀷", Length = 20)]
-    public string? Type { get; set; }
+    public PLCTypeEnum Type { get; set; }
     
     /// <summary>
     /// 鎶ヨ鏃ユ湡

--
Gitblit v1.8.0