diff --git a/ProductionSystem/Forms/HomeForm.cs b/ProductionSystem/Forms/HomeForm.cs
index 25f24f7..96707b7 100644
--- a/ProductionSystem/Forms/HomeForm.cs
+++ b/ProductionSystem/Forms/HomeForm.cs
@@ -1800,7 +1800,6 @@ namespace ProductionSystem.Forms
{
result = 1;
}
-
middleMyTestResultControls[j].TestResultText = result == 1 ? "OK" : (result == 2 ? "NG" : "");
middleMyTestResultControls[j].TestResultForeColor = Color.White;
diff --git a/ProductionSystem_Model/DbModel/T_Result2.cs b/ProductionSystem_Model/DbModel/T_Result2.cs
new file mode 100644
index 0000000..dcb5b4e
--- /dev/null
+++ b/ProductionSystem_Model/DbModel/T_Result2.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using SqlSugar;
+
+namespace ProductionSystem_Model.DbModel
+{
+ ///
+ /// 结果表2
+ ///
+ [SugarTable("t_result2")]
+ public class T_Result2
+ {
+ [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
+ public string Id { get; set; }
+
+ [SugarColumn(ColumnName = "product_type")]
+ public string ProductType { get; set; }
+
+ [SugarColumn(ColumnName = "product_barcode")]
+ public string ProductBarcode { get; set; }
+
+ [SugarColumn(ColumnName = "create_time")]
+ public DateTime CreateTime { get; set; }
+
+ [SugarColumn(ColumnName = "step")]
+ public string Step { get; set; }
+
+ [SugarColumn(ColumnName = "voltage")]
+ public string Voltage { get; set; }
+
+ [SugarColumn(ColumnName = "electricity")]
+ public string Electricity { get; set; }
+
+ [SugarColumn(ColumnName = "xll")]
+ public string Xll { get; set; }
+
+ [SugarColumn(ColumnName = "xllzt")]
+ public string Xllzt { get; set; }
+ }
+}
diff --git a/ProductionSystem_Model/ProductionSystem_Model.csproj b/ProductionSystem_Model/ProductionSystem_Model.csproj
index 8c8e4e8..a803306 100644
--- a/ProductionSystem_Model/ProductionSystem_Model.csproj
+++ b/ProductionSystem_Model/ProductionSystem_Model.csproj
@@ -115,6 +115,7 @@
+
diff --git a/ProductionSystem_Service/ProductionSystem_Service.csproj b/ProductionSystem_Service/ProductionSystem_Service.csproj
index 7aedf8c..cd44ce7 100644
--- a/ProductionSystem_Service/ProductionSystem_Service.csproj
+++ b/ProductionSystem_Service/ProductionSystem_Service.csproj
@@ -121,6 +121,7 @@
+
diff --git a/ProductionSystem_Service/TResult2Service.cs b/ProductionSystem_Service/TResult2Service.cs
new file mode 100644
index 0000000..342a206
--- /dev/null
+++ b/ProductionSystem_Service/TResult2Service.cs
@@ -0,0 +1,32 @@
+using ProductionSystem_Log;
+using ProductionSystem_Model.DbModel;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProductionSystem_Service
+{
+ public class TResult2Service : DbContext
+ {
+ ///
+ /// 新增
+ ///
+ ///
+ ///
+ public int AddTResult2(T_Result2 t_Result2)
+ {
+ try
+ {
+ return db.Insertable(t_Result2).ExecuteCommand();
+ }catch (Exception ex)
+ {
+ LogHelper.Error(ex, "执行TResult2Service下AddTResult2时异常");
+ return -1;
+ }
+ }
+
+
+ }
+}