浏览代码

chore(s0): remove unused LinePostSkill entity and DTOs

AdoS0MfgLinePostSkill (table LinePostSkill) had no Controller or
repository injection; the active line-post-skill flow uses
AdoS0LineSkillDetail instead. Drop the entity, the two unused
upsert DTOs (AdoS0MfgLinePostSkillUpsertDto, AdoS0MfgLinePostUpsertDto),
and the Startup CodeFirst registration. Physical table left in place
for separate data-cleanup pass.
YY968XX 1 月之前
父节点
当前提交
01faf05370

+ 0 - 31
server/Plugins/Admin.NET.Plugin.AiDOP/Dto/S0/Manufacturing/AdoS0ManufacturingDtos.cs

@@ -818,37 +818,6 @@ public class AdoS0MfgRoutingOpDetailUpsertDto
     public string? UpdateUser { get; set; }
 }
 
-public class AdoS0MfgLinePostSkillUpsertDto
-{
-    public long? Id { get; set; }
-
-    [Range(1, long.MaxValue, ErrorMessage = "人员技能不能为空")]
-    public long PersonSkillId { get; set; }
-    public string? RequiredLevel { get; set; }
-    public string? Remark { get; set; }
-    public DateTime? EffectiveDate { get; set; }
-    public bool IsEnabled { get; set; } = true;
-}
-
-public class AdoS0MfgLinePostUpsertDto
-{
-    [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
-    public long CompanyRefId { get; set; }
-
-    [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
-    public long FactoryRefId { get; set; }
-
-    [Required(ErrorMessage = "线体岗位编码不能为空")]
-    public string Code { get; set; } = string.Empty;
-
-    [Required(ErrorMessage = "线体岗位名称不能为空")]
-    public string Name { get; set; } = string.Empty;
-    public long? ProductionLineId { get; set; }
-    public string? Remark { get; set; }
-    public bool IsEnabled { get; set; } = true;
-    public List<AdoS0MfgLinePostSkillUpsertDto> Skills { get; set; } = new();
-}
-
 /// <summary>
 /// 产线岗位维护(LineSkillMaster):列表查询
 /// </summary>

+ 0 - 37
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S0/Manufacturing/AdoS0MfgMastersAndSop.cs

@@ -148,43 +148,6 @@ public class AdoS0MfgLinePost
     public DateTime? UpdatedAt { get; set; }
 }
 
-[SugarTable("LinePostSkill", "S0 线体岗位技能")]
-public class AdoS0MfgLinePostSkill
-{
-    [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
-    public long Id { get; set; }
-
-    [SugarColumn(ColumnDescription = "公司", ColumnDataType = "bigint")]
-    public long CompanyRefId { get; set; }
-
-    [SugarColumn(ColumnDescription = "工厂", ColumnDataType = "bigint")]
-    public long FactoryRefId { get; set; }
-
-    [SugarColumn(ColumnDescription = "岗位", ColumnDataType = "bigint")]
-    public long LinePostId { get; set; }
-
-    [SugarColumn(ColumnDescription = "人员技能", ColumnDataType = "bigint")]
-    public long PersonSkillId { get; set; }
-
-    [SugarColumn(ColumnDescription = "要求等级", Length = 50, IsNullable = true)]
-    public string? RequiredLevel { get; set; }
-
-    [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
-    public string? Remark { get; set; }
-
-    [SugarColumn(ColumnDescription = "生效日期", IsNullable = true)]
-    public DateTime? EffectiveDate { get; set; }
-
-    [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
-    public bool IsEnabled { get; set; } = true;
-
-    [SugarColumn(ColumnDescription = "创建时间")]
-    public DateTime CreatedAt { get; set; } = DateTime.Now;
-
-    [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
-    public DateTime? UpdatedAt { get; set; }
-}
-
 [SugarTable("WorkCenter", "S0 工作中心")]
 [SugarIndex("uk_WorkCenter_code", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Code), OrderByType.Asc, IsUnique = true)]
 public class AdoS0MfgWorkCenter

+ 0 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Startup.cs

@@ -100,7 +100,6 @@ public class Startup : AppStartup
                 typeof(AdoS0MfgWorkOrderControl),
                 typeof(AdoS0MfgPersonSkill),
                 typeof(AdoS0MfgLinePost),
-                typeof(AdoS0MfgLinePostSkill),
                 typeof(AdoS0MfgWorkCenter),
                 typeof(AdoS0MfgLineMaterial),
                 typeof(AdoS0ProcessFlowCard),