From b8510ca5d1e56ef78cd27c45b6bd65a2c13f6b27 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期一, 17 三月 2025 15:12:34 +0800 Subject: [PATCH] 代码优化 --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Model/Models/SerialPort/Dt_Process.cs | 118 +++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 99 insertions(+), 19 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Model/Models/SerialPort/Dt_Process.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Model/Models/SerialPort/Dt_Process.cs" index fe60ba2..b997dd3 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Model/Models/SerialPort/Dt_Process.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Model/Models/SerialPort/Dt_Process.cs" @@ -4,47 +4,127 @@ using System.Text; using System.Threading.Tasks; using SqlSugar; +using WIDESEAWCS_Core.DB.Models; using WIDESEAWCS_Core.Tenants; namespace WIDESEAWCS_Model.Models { - [SugarTable("Dt_Process","宸ヨ壓姝ラ琛�"),MultiTenant] - public class Dt_Process + [SugarTable("Dt_Process", "宸ヨ壓琛�"), MultiTenant] + public class Dt_Process : BaseEntity { - [SugarColumn(IsPrimaryKey =true,IsIdentity =true,ColumnDescription ="涓婚敭")] + [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")] public int CraftID { get; set; } - public int Nodal { get; set; } + /// <summary> + /// 澶у簭鍙� + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public int Nodal { get; set; } - //[SugarColumn(IsNullable = false, Length = 50)] + + /// <summary> + /// 灏忓簭鍙� + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public int SetpNum { get; set; } + + /// <summary> + /// 缁勫埆 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] public string CraftType { get; set; } - //[SugarColumn(IsNullable = false, Length = 255)] + + /// <summary> + /// 宸ヤ綔鍓嶅噯澶囨楠� + /// </summary> + [SugarColumn(IsNullable = true, Length = 255)] public string CraftsStep { get; set; } - //[SugarColumn(IsNullable = false, Length = 255)] - public string CraftContent { get; set; } - - //[SugarColumn(IsNullable = true, Length = 50)] + + /// <summary> + /// 宸ヨ壓鍏蜂綋鍐呭 + /// </summary> + [SugarColumn(IsNullable = true, Length = 255)] + public string CraftContent { get; set; } + + + /// <summary> + /// 宸ュ叿 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] public string Tools { get; set; } - //[SugarColumn(IsNullable = true, Length = 50)] - public string TorqueOne { get; set; } - //[SugarColumn(IsNullable = true)] + /// <summary> + /// 鐗╂枡 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public string Material { get; set; } + + + + /// <summary> + /// 绗竴涓渶瑕佹壄鐨勫�� + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public float TorqueOne { get; set; } + + /// <summary> + /// 绗竴涓渶瑕佹壄鐨勫�肩殑涓暟 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] public int TorqueOneQuantity { get; set; } - //[SugarColumn(IsNullable = true, Length = 50)] - public string TorqueTwo { get; set; } - //[SugarColumn(IsNullable = true)] + /// <summary> + /// 濂楃瓛id锛堜俊鎭垪琛級 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public string ArticleOneid { get; set; } + + + /// <summary> + /// 绗竴涓绛掓暟閲� + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public string ArticleOne { get; set; } + + /// <summary> + /// 绗簩涓渶瑕佹壄鐨勫�� + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public float TorqueTwo { get; set; } + + /// <summary> + /// 绗簩涓渶瑕佹壄鐨勫�肩殑涓暟 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] public int TorqueTwoQuantity { get; set; } - //[SugarColumn(IsNullable = true)] + + /// <summary> + /// 绗簩涓绛抜d + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public string ArticleTowid { get; set; } + + /// <summary> + /// 绗簩涓绛掔殑鏁伴噺 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] + public string ArticleTwo { get; set; } + + + + + /// <summary> + /// 闇�瑕佹壄鍑犵涓嶅悓鐨勫姏 + /// </summary> + [SugarColumn(IsNullable = true, Length = 50)] public int TorqueSum { get; set; } - //[SugarColumn(IsNullable = true)] - public int SetpNum { get; set; } + } } -- Gitblit v1.9.3