From c3a050007846b015c11ec53db980831d23e7c3f8 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期四, 12 九月 2024 14:08:54 +0800 Subject: [PATCH] 基础资料接口部分实体与erp的对照增加Type字段的赋值,防止根据type分组时报错 --- MES.Service/Modes/SysDepartment.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MES.Service/Modes/SysDepartment.cs b/MES.Service/Modes/SysDepartment.cs index f80b5b1..f2b6669 100644 --- a/MES.Service/Modes/SysDepartment.cs +++ b/MES.Service/Modes/SysDepartment.cs @@ -23,7 +23,7 @@ /// <summary> /// 閮ㄩ棬缂栧彿 /// </summary> - [SugarColumn(ColumnName = "DEPARTMENTCODE", IsPrimaryKey = true)] + [SugarColumn(ColumnName = "DEPARTMENTCODE")] public string? Departmentcode { get; set; } /// <summary> @@ -118,7 +118,7 @@ /// <summary> /// </summary> - [SugarColumn(ColumnName = "ID")] + [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] public decimal Id { get; set; } /// <summary> -- Gitblit v1.9.3