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()