From dbaae5ac17717b19d016c28c72aa1e2f6aa8b3d9 Mon Sep 17 00:00:00 2001 From: kdh0120 Date: Wed, 10 Nov 2021 01:39:02 +0000 Subject: [PATCH] =?UTF-8?q?<=EC=98=A4=EB=A5=98=EC=88=98=EC=A0=95>=20?= =?UTF-8?q?=ED=86=B5=ED=95=A9=ED=85=8C=EC=8A=A4=ED=8A=B8=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20-=20{538}=20Dao/MyBatis/Maps/Lect.xml=20=ED=95=99=EC=8A=B5?= =?UTF-8?q?=EC=95=8C=EB=A6=BC=EC=97=90=20=EC=9E=88=EB=8A=94=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=20=EC=B6=9C=EB=A0=A5=EB=90=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(=EC=88=98=EA=B0=95=EC=A2=85=EB=A3=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=9D=B4=EC=A0=84=EB=82=B4=EC=9A=A9=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/Lect.xml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index 3309020..f2a7b34 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -1362,7 +1362,8 @@ ,2 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8 ,a.lectno longval ,b.cname strval,bc.cname strval2,concat(date_format(c.idate,'%m/%d'),' ',left(c.ist,2),':',right(c.ist,2),' ~ ',left(c.iet,2),':',right(c.iet,2)) strval3 - ,b.sstime time,b.setime time2 + ,case when a.sdate is null then b.sstime else a.sdate end as time + ,case when a.edate is null then b.setime else a.edate end as time2 ,row_number() over(partition by a.cmno order by c.iseq) rno2 ,row_number() over(order by b.setime) rno from lect a @@ -1386,7 +1387,8 @@ ,3 intval,0 intval2,b.classno intval3,c.extype intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8 ,a.lectno longval ,b.cname strval,bc.cname strval2,null strval3 - ,b.sstime time,b.setime time2 + ,case when a.sdate is null then b.sstime else a.sdate end as time + ,case when a.edate is null then b.setime else a.edate end as time2 ,row_number() over(partition by a.cmno order by c.extype,c.cdt) rno2 ,row_number() over(order by b.setime) rno from lect a @@ -1410,7 +1412,8 @@ ,4 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8 ,a.lectno longval ,b.cname strval,bc.cname strval2,null strval3 - ,b.sstime time,b.setime time2 + ,case when a.sdate is null then b.sstime else a.sdate end as time + ,case when a.edate is null then b.setime else a.edate end as time2 ,row_number() over(partition by a.cmno order by c.cdt) rno2 ,row_number() over(order by b.setime) rno from lect a @@ -1434,7 +1437,8 @@ ,5 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7,0 intval8 ,a.lectno longval ,b.cname strval,bc.cname strval2,null strval3 - ,b.sstime time,b.setime time2 + ,case when a.sdate is null then b.sstime else a.sdate end as time + ,case when a.edate is null then b.setime else a.edate end as time2 ,row_number() over(partition by a.cmno order by c.cdt) rno2 ,row_number() over(order by b.setime) rno from lect a @@ -1458,7 +1462,7 @@ ,a.scdno intval,a.dday intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,b.cmno intval7,0 intval8 ,c.lectno longval,a.alno longval2 ,b.cname strval,null strval2,null strval3 - ,a.atime time,null time2 + ,a.atime time,c.edate time2 ,row_number() over(order by a.atime desc) rno from alarms a inner join cm b on b.cmno=a.cmexno