From e36fe50aad76efd3d17b98d16bb3ca4c50e6d6ac Mon Sep 17 00:00:00 2001 From: lch Date: Wed, 9 Jun 2021 07:37:24 +0000 Subject: [PATCH] =?UTF-8?q?"=EB=B3=B5=EC=8A=B5=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EA=B5=AC=ED=98=84=20-=20=EA=B5=90?= =?UTF-8?q?=EC=9C=A1=20=EC=A2=85=EB=A3=8C=EC=9D=BC=EB=A1=9C=EB=B6=80?= =?UTF-8?q?=ED=84=B0=201=EB=85=84=EA=B9=8C=EC=A7=80=20=EB=B3=B5=EC=8A=B5?= =?UTF-8?q?=EB=A7=8C=20=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=EA=B5=AC=ED=98=84"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Base/Controller/FOCommon.cs | 4 +- Dao/MyBatis/Maps/CRoom.xml | 5 +- FO/Controllers/CDMSController.cs | 106 ++++++++++++++++++------------- FO/Views/CDMS/Contents.cshtml | 70 +++++++------------- FO/Views/CRoom/Index.cshtml | 2 +- FO/Views/CRoom/Innings.cshtml | 2 +- 6 files changed, 93 insertions(+), 96 deletions(-) diff --git a/Base/Controller/FOCommon.cs b/Base/Controller/FOCommon.cs index bd4704e..9efc879 100644 --- a/Base/Controller/FOCommon.cs +++ b/Base/Controller/FOCommon.cs @@ -353,10 +353,10 @@ namespace NP.Base.Controllers { return JsonBack(new JsonRtn() { code = 1000, obj = -2 }); } - else if (cmi.isrebate == 1) + else { var intval = Dao.Get("cr.lectinnings", new System.Collections.Hashtable() { { "lectno", lectno }, { "isfinishtoday", 1 } }).Count(); - if (intval > 5 && cmi.istatus < 2) + if (intval > 7 && cmi.istatus < 2) { return JsonBack(new JsonRtn() { code = 1000, obj = -3 }); } diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml index f22fa8c..8318b83 100644 --- a/Dao/MyBatis/Maps/CRoom.xml +++ b/Dao/MyBatis/Maps/CRoom.xml @@ -251,9 +251,8 @@ and p.pseq=#pseq# and p.cpno=#cpno# and p.pseq=li.pseq - inner join lect b on b.lectno=#lectno# and b.userno=#userno# and b.cmno=a.cmno and b.status=1 and b.ischanged=0 and b.sdate < now() - - where a.cmino=#cmino# + inner join lect b on b.lectno=#lectno# and b.userno=#userno# and b.cmno=a.cmno and b.status=1 and b.ischanged=0 + where a.cmino=#cmino# and b.sdate < now() and b.edate > now() SELECT last_insert_id()