From d26a6a8f6be4c2ff6ade9a8b9ea1ce190c64d9bd Mon Sep 17 00:00:00 2001 From: wintel Date: Sun, 17 Sep 2023 11:56:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I81YXM=20sqlsugar=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E6=97=B6=E6=B2=A1=E6=9C=89=E9=BB=98=E8=AE=A4?= =?UTF-8?q?ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs b/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs index 11860ff8..c2a44d0c 100644 --- a/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs +++ b/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs @@ -51,6 +51,10 @@ namespace OpenAuth.App { //程序类型取入口应用的名称,可以根据自己需要调整 var addObj = obj.MapTo(); + if (addObj.KeyIsNull()) + { + addObj.GenerateDefaultKeyVal(); + } addObj.CreateTime = DateTime.Now; addObj.CreateUser = _auth.GetUserName(); Repository.Insert(addObj);