diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlan.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlan.cs index a25d6012..af26dbc9 100644 --- a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlan.cs +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlan.cs @@ -3,76 +3,73 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; - -namespace Tnb.EquipMgr.Entities -{ - using global::Tnb.Common.Contracts; using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; -namespace Tnb.EquipMgr.Entities; - -/// -/// -/// -[SugarTable("tool_mold_maintain_plan")] -public partial class ToolMoldMaintainPlan : BaseEntity +namespace Tnb.EquipMgr.Entities { - public ToolMoldMaintainPlan() + + /// + /// + /// + [SugarTable("tool_mold_maintain_plan")] + public partial class ToolMoldMaintainPlan : BaseEntity { - id = SnowflakeIdHelper.NextId(); + public ToolMoldMaintainPlan() + { + id = SnowflakeIdHelper.NextId(); + } + /// + /// 计划单号 + /// + public string? plan_code { get; set; } + + /// + /// 保养方式 + /// + public string? mode { get; set; } + + /// + /// 计划状态 + /// + public string? status { get; set; } + + /// + /// 计划开始时间 + /// + public DateTime? plan_start_date { get; set; } + + /// + /// 计划完成时间 + /// + public DateTime? plan_end_date { get; set; } + + /// + /// 备注 + /// + public string? remark { get; set; } + + /// + /// 制定人 + /// + public string? create_id { get; set; } + + /// + /// 制定时间 + /// + public DateTime? create_time { get; set; } + + /// + /// 修改人 + /// + public string? modify_id { get; set; } + + /// + /// 修改时间 + /// + public DateTime? modify_time { get; set; } + } - /// - /// 计划单号 - /// - public string? plan_code { get; set; } - - /// - /// 保养方式 - /// - public string? mode { get; set; } - - /// - /// 计划状态 - /// - public string? status { get; set; } - - /// - /// 计划开始时间 - /// - public DateTime? plan_start_date { get; set; } - - /// - /// 计划完成时间 - /// - public DateTime? plan_end_date { get; set; } - - /// - /// 备注 - /// - public string? remark { get; set; } - - /// - /// 制定人 - /// - public string? create_id { get; set; } - - /// - /// 制定时间 - /// - public DateTime? create_time { get; set; } - - /// - /// 修改人 - /// - public string? modify_id { get; set; } - - /// - /// 修改时间 - /// - public DateTime? modify_time { get; set; } - -} } diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlanRelation.cs b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlanRelation.cs index 5a305aac..22e26fda 100644 --- a/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlanRelation.cs +++ b/EquipMgr/Tnb.EquipMgr.Entities/Entity/ToolMoldMaintainPlanRelation.cs @@ -1,7 +1,7 @@ using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; -using Tnb.Common.Contracts; + namespace Tnb.EquipMgr.Entities; diff --git a/EquipMgr/Tnb.EquipMgr/BaseMoldMaintainService.cs b/EquipMgr/Tnb.EquipMgr/BaseMoldMaintainService.cs index 61f99f18..00d96f74 100644 --- a/EquipMgr/Tnb.EquipMgr/BaseMoldMaintainService.cs +++ b/EquipMgr/Tnb.EquipMgr/BaseMoldMaintainService.cs @@ -10,9 +10,9 @@ using JNPF.FriendlyException; using SqlSugar; using Tnb.EquipMgr.Entities.Dto; using Tnb.EquipMgr.Entities; -using Tnb.EquipMgr.Utils; using Mapster; using JNPF.Common.Contracts; +using JNPF.Common.Extension; namespace Tnb.EquipMgr { diff --git a/EquipMgr/Tnb.EquipMgr/Utils/PropertySet.cs b/EquipMgr/Tnb.EquipMgr/Utils/PropertySet.cs deleted file mode 100644 index 1ee63ccd..00000000 --- a/EquipMgr/Tnb.EquipMgr/Utils/PropertySet.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Linq.Expressions; - -namespace Tnb.EquipMgr.Utils -{ - //public class PropertySet - //{ - // public static Dictionary> ValueFactories = new Dictionary>(StringComparer.OrdinalIgnoreCase); - - // public static Action CreateSetPropertyValueAction(string propertyName) - // { - // var property = typeof(T).GetProperty(propertyName); - // var target = Expression.Parameter(typeof(object)); - // var propertyValue = Expression.Parameter(typeof(object)); - // var castTarget = Expression.Convert(target, typeof(T)); - // var castPropertyValue = Expression.Convert(propertyValue, property!.PropertyType); - // var setPropertyValue = Expression.Call(castTarget, property.GetSetMethod()!, castPropertyValue); - // return Expression.Lambda>(setPropertyValue, target, propertyValue).Compile(); - // } - - //} - - -} diff --git a/common/Tnb.Common/Extension/LambdaExpressionExtensions.cs b/common/Tnb.Common/Extension/LambdaExpressionExtensions.cs index 838ec589..e2e2f6cf 100644 --- a/common/Tnb.Common/Extension/LambdaExpressionExtensions.cs +++ b/common/Tnb.Common/Extension/LambdaExpressionExtensions.cs @@ -5,7 +5,7 @@ using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; -namespace Tnb.Common.Extension +namespace JNPF.Common.Extension { public static class LambdaExpressionExtensions {