From b8ea65888eb924b0205d99e16772ceec92bffae4 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Tue, 7 Jan 2025 15:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BF=85=E9=80=89=E4=BF=AE?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20=E6=96=B0=E5=A2=9E=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E5=AD=A6=E4=B9=A0=E5=AD=A6=E4=B9=A0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Model/Tiobon.Web.pdm | 40 +++++++++---------- .../Ghre/Ghre_CourseServices.cs | 2 +- .../Ghre/Ghre_StudyRuleServices.cs | 10 +++++ 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/Model/Tiobon.Web.pdm b/Model/Tiobon.Web.pdm index b5ce80dd..bd1a2f50 100644 --- a/Model/Tiobon.Web.pdm +++ b/Model/Tiobon.Web.pdm @@ -1,5 +1,5 @@ - + @@ -11732,7 +11732,7 @@ Shadow=0 1728532977 1728532977 -((-7949,7725), (-3449,14400)) +((-7911,7725), (-3487,14400)) ((-5699,7725),(-5699,14400)) 2 1 @@ -11752,7 +11752,7 @@ Shadow=0 1728533087 1728533087 -((-5924,7312), (3076,8833)) +((-5924,7312), (3076,8883)) ((-5924,7537),(3076,7537)) 2 1 @@ -11772,7 +11772,7 @@ Shadow=0 1728540045 1728540045 -((-7911,75), (-2661,6900)) +((-7873,75), (-2699,6900)) ((-5286,75),(-5286,6900)) 2 1 @@ -11792,7 +11792,7 @@ Shadow=0 1728541044 1728541044 -((2138,150), (8138,6075)) +((2176,150), (8100,6075)) ((5138,150),(5138,6075)) 2 1 @@ -11832,7 +11832,7 @@ Shadow=0 1729663415 1730336612 -((-37349,15150), (-31724,16671)) +((-37349,15150), (-31724,16721)) ((-37349,15375),(-31724,15375)) 2 1 @@ -11852,7 +11852,7 @@ Shadow=0 1730250294 1730336612 -((-32249,15600), (-27749,21575)) +((-32211,15600), (-27787,21575)) ((-29999,21575),(-29999,15600)) 2 1 @@ -11872,7 +11872,7 @@ Shadow=0 1730336852 1730336852 -((-28499,15187), (-20024,16708)) +((-28499,15187), (-20024,16758)) ((-20024,15412),(-28499,15412)) 2 1 @@ -11892,7 +11892,7 @@ Shadow=0 1730340808 1730346524 -((-32774,2475), (-28274,14700)) +((-32736,2475), (-28312,14700)) ((-30524,2475),(-30524,14700)) 2 1 @@ -11913,7 +11913,7 @@ Shadow=0 1730346502 1730373277 (300, 1787) -((-29024,4725), (-19499,15600)) +((-28986,4725), (-19499,15600)) ((-19499,4725),(-27074,4725),(-27074,15600)) 2 1 @@ -11933,7 +11933,7 @@ Shadow=0 1731478017 1731478017 -((-28949,-11662), (-20174,-10140)) +((-28949,-11662), (-20174,-10091)) ((-20174,-11437),(-28949,-11437)) 2 1 @@ -11953,7 +11953,7 @@ Shadow=0 1731478076 1731478076 -((-33411,-18225), (-27411,-11025)) +((-33373,-18225), (-27449,-11025)) ((-30411,-18225),(-30411,-11025)) 2 1 @@ -11973,7 +11973,7 @@ Shadow=0 1731491451 1731491451 -((-39899,-11325), (-30899,-9803)) +((-39899,-11325), (-30899,-9754)) ((-39899,-11100),(-30899,-11100)) 2 1 @@ -11994,7 +11994,7 @@ Shadow=0 1733211832 1733211849 (75, 1801) -((-19349,-11437), (-9674,-8114)) +((-19349,-11437), (-9674,-8065)) ((-9674,-11212),(-19349,-11212)) 2 1 @@ -12014,7 +12014,7 @@ Shadow=0 1733369860 1733369860 -((563,-18975), (5063,-12300)) +((601,-18975), (5025,-12300)) ((2813,-18975),(2813,-12300)) 2 1 @@ -12034,7 +12034,7 @@ Shadow=0 1733909650 1733909650 -((13726,-19425), (18976,-13500)) +((13764,-19425), (18938,-13500)) ((16351,-19425),(16351,-13500)) 2 1 @@ -12054,7 +12054,7 @@ Shadow=0 1734490374 1734490374 -((-29550,-4274), (-20625,-2752)) +((-29550,-4274), (-20625,-2703)) ((-20625,-4049),(-29550,-4049)) 2 1 @@ -24894,11 +24894,11 @@ LABL 0 Arial Unicode MS,8,N CourseName 1721021023 Administrator -1721021023 +1736228344 Administrator 课程名称 -nvarchar(32) -32 +nvarchar(64) +64 F934B12A-9474-48D7-B839-CBB51FF4CC11 diff --git a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs index 2f4c56f3..fc7b2a38 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs @@ -49,7 +49,7 @@ public class Ghre_CourseServices : BaseServices().AnyAsync(x => x.StudyRuleId == id.ObjToLong() && x.StudyStatus != Consts.DIC_STUDY_RECORD_STUDY_STATUS.NO_JOIN)) throw new Exception($"有学员已经学习,暂不可作废!"); + await Db.Updateable() + .SetColumns(it => new Ghre_StudyRecord() + { + IsEnable = 0, + UpdateTime = DateTime.Now, + UpdateBy = App.User.ID + }) + .Where(it => it.StudyRuleId == id.ObjToLong()) + .ExecuteCommandAsync(); + return await base.DeleteById1(id); }