From 5539247bec4d6aa1e2ca370a408a2e18e7cbc79b Mon Sep 17 00:00:00 2001 From: lch Date: Tue, 13 Jul 2021 01:28:52 +0000 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90>=EA=B0=95=EC=9D=98?= =?UTF-8?q?=EC=8B=A4>=ED=8F=89=EA=B0=80=20:=20=EC=8B=9C=ED=97=98,=20?= =?UTF-8?q?=EA=B3=BC=EC=A0=9C=EC=A0=9C=EC=B6=9C,=20=20=ED=86=A0=EB=A1=A0?= =?UTF-8?q?=20=EC=B0=B8=EC=97=AC=EA=B8=B0=EA=B0=84=20=EB=B0=8F=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5,=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EC=A0=9C?= =?UTF-8?q?=EC=95=BD=20=EC=A1=B0=EA=B1=B4=20=20cm.sstime,cm.setime=20->=20?= =?UTF-8?q?lect.sdate,lect.edate=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/CRoom.xml | 36 ++++++++++++------------- FO/Views/CRoom/DiscussReg.cshtml | 6 ++--- FO/Views/CRoom/DiscussView.cshtml | 6 ++--- FO/Views/CRoom/EstimationDiscuss.cshtml | 32 +++++++++++----------- FO/Views/CRoom/EstimationExam.cshtml | 2 +- FO/Views/CRoom/EstimationSubject.cshtml | 2 +- 6 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml index 004fbbb..94b9911 100644 --- a/Dao/MyBatis/Maps/CRoom.xml +++ b/Dao/MyBatis/Maps/CRoom.xml @@ -615,7 +615,7 @@ - select a.lectno,a.attrate + select a.lectno,a.attrate,a.sdate,a.edate ,b.sdno,b.sdname,b.sddesc,b.fgno sdfgno,b.sdcondition - ,a.sdate sstime,a.edate setime + ,c.sstime,c.setime ,d.checktime,d.cpoint,d.feedb,d.fgno,d.atext from lect a inner join cmsd b on b.cmno=a.cmno and b.sdno=#sdno# @@ -666,7 +666,7 @@ update lectsdboard set rcount=rcount+1 where bno=#bno# and cno<>#userno#; select a.bno,a.subject,a.contents,a.cdt,a.fgno,a.cno ,b.sdname - ,l.sdate sstime,l.edate setime + ,c.sstime,c.setime,l.sdate,l.edate ,u.username,u.userno ,a2.checktime from lectsdboard a @@ -679,24 +679,24 @@ update lectsd a - inner join lect b on b.lectno=a.lectno and b.userno=#userno# - inner join cm c on c.cmno=b.cmno and c.sstime < now() and c.setime > now() + inner join lect b on b.lectno=a.lectno and b.userno=#userno# and b.sdate < now() and b.edate > now() + inner join cm c on c.cmno=b.cmno set a.udt=now(),a.uno=#uno#,a.uip=#uip# ,a.submittime=now(),submitip=#uip# where a.lectno=#lectno# and a.sdno=#sdno# and a.checktime is null; update lectsdboard a inner join lectsd a2 on a2.lectno=a.lectno and a2.sdno=a.sdno and a2.checktime is null - inner join lect b on b.lectno=a.lectno and b.userno=#userno# - inner join cm c on c.cmno=b.cmno and c.sstime < now() and c.setime > now() + inner join lect b on b.lectno=a.lectno and b.userno=#userno# and b.sdate < now() and b.edate > now() + inner join cm c on c.cmno=b.cmno set a.udt=now(),a.uno=#uno#,a.uip=#uip# ,a.subject=#subject#,contents=#contents#,a.fgno=#fgno# where a.bno=#bno# and a.lectno=#lectno# and a.sdno=#sdno#; update lectsd a - inner join lect b on b.lectno=a.lectno and b.userno=#userno# - inner join cm c on c.cmno=b.cmno and c.sstime < now() and c.setime > now() + inner join lect b on b.lectno=a.lectno and b.userno=#userno# and b.sdate < now() and b.edate > now() + inner join cm c on c.cmno=b.cmno set a.udt=now(),a.uno=#uno#,a.uip=#uip# ,a.submittime=now(),submitip=#uip# where a.lectno=#lectno# and a.sdno=#sdno# and a.checktime is null; @@ -704,8 +704,8 @@ insert into lectsd (lectno,sdno,iscopy,submittime,submitip,) select a.lectno,a.sdno,0,now(),#uip#, from (select #lectno# lectno,#userno# userno,#sdno# sdno) a - inner join lect b on b.lectno=a.lectno and b.userno=a.userno - inner join cm c on c.cmno=b.cmno and c.sstime < now() and c.setime > now() + inner join lect b on b.lectno=a.lectno and b.userno=a.userno and b.sdate < now() and b.edate > now() + inner join cm c on c.cmno=b.cmno left outer join lectsd d on d.lectno=a.lectno and d.sdno=a.sdno where d.lectno is null; @@ -714,8 +714,8 @@ insert into lectsdboard (lectno,sdno,subject,contents,fgno,rcount,cip,isdel,) select a.lectno,a.sdno,#subject#,#contents#,#fgno#,0,#uip#,0, from (select #lectno# lectno,#userno# userno,#sdno# sdno) a - inner join lect b on b.lectno=a.lectno and b.userno=a.userno - inner join cm c on c.cmno=b.cmno and c.sstime < now() and c.setime > now(); + inner join lect b on b.lectno=a.lectno and b.userno=a.userno and b.sdate < now() and b.edate > now() + inner join cm c on c.cmno=b.cmno SELECT last_insert_id()