From e2076c4d4b88ba228e896246aa19abca965ec5d5 Mon Sep 17 00:00:00 2001 From: gaofei <181547018@qq.com> Date: Mon, 13 Feb 2023 10:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=B3=E8=AF=B7=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/SysManage/SysConstSetService.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SGGL/BLL/SysManage/SysConstSetService.cs b/SGGL/BLL/SysManage/SysConstSetService.cs index dab17eac..14dd44a5 100644 --- a/SGGL/BLL/SysManage/SysConstSetService.cs +++ b/SGGL/BLL/SysManage/SysConstSetService.cs @@ -78,6 +78,15 @@ else { Model.Sys_Set newSysSet5 = new Model.Sys_Set(); + var q = (from x in Funs.DB.Sys_Set orderby x.SetId descending select x).FirstOrDefault(); + if (q == null) + { + newSysSet5.SetId = 1; + } + else + { + newSysSet5.SetId = q.SetId + 1; + } if (!string.IsNullOrEmpty(token)) { newSysSet5.SetValue = token; @@ -101,6 +110,15 @@ else { Model.Sys_Set newSysSet5 = new Model.Sys_Set(); + var q = (from x in Funs.DB.Sys_Set orderby x.SetId descending select x).FirstOrDefault(); + if (q == null) + { + newSysSet5.SetId = 1; + } + else + { + newSysSet5.SetId = q.SetId + 1; + } if (!string.IsNullOrEmpty(ExpirationTime)) { newSysSet5.SetValue = ExpirationTime;