From 91597d906f0d42ba8156e8eb19644a90e0b44b0e Mon Sep 17 00:00:00 2001 From: jity7777 Date: Mon, 11 Jul 2022 00:36:09 +0000 Subject: [PATCH] =?UTF-8?q?<=EA=B8=B0=EB=8A=A5=EA=B0=9C=EC=84=A0>=201.=20P?= =?UTF-8?q?MS=20NO=20:=202.=20(=EC=A3=BC=EC=9A=94)=EC=9E=91=EC=97=85?= =?UTF-8?q?=EB=82=B4=EC=9A=A9=20(1)=20D:/Project/NEW=5FLMS/2020LMSYNICTE/D?= =?UTF-8?q?ao/MyBatis/Maps/Grade.xml=20=20-=20=EC=B5=9C=EB=8C=80=EA=B0=92?= =?UTF-8?q?=EC=9D=84=20=EA=B5=AC=ED=95=98=EB=85=84=20=EB=85=84=EB=8F=84?= =?UTF-8?q?=EC=99=80=20=EC=88=98=EB=A3=8C=EB=B2=88=ED=98=B8=EC=97=90=20?= =?UTF-8?q?=EB=B6=99=EB=8A=94=20=EB=85=84=EB=8F=84=20=EC=9D=BC=EC=B9=98?= =?UTF-8?q?=EC=8B=9C=ED=82=B4,=20=EC=88=98=EB=A3=8C=EA=B2=80=EC=82=AC?= =?UTF-8?q?=EC=8B=9C=20=EA=B8=B0=EC=A1=B4=20=EC=88=98=EB=A3=8C=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=EC=82=AC=EC=9A=A9=ED=95=98=EB=8A=94=20=EA=B2=83=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0(=EB=AC=B4=EC=A1=B0=EA=B1=B4=20=EC=83=88?= =?UTF-8?q?=EB=A1=9C=20=EB=B2=88=ED=98=B8=20=EB=B6=80=EC=97=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/Grade.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dao/MyBatis/Maps/Grade.xml b/Dao/MyBatis/Maps/Grade.xml index 670983a..010348f 100644 --- a/Dao/MyBatis/Maps/Grade.xml +++ b/Dao/MyBatis/Maps/Grade.xml @@ -389,10 +389,10 @@ where l.lectno in ($lectnos$) ) t1 left outer join ( - select date_format(l.cdt, '%Y') cyear + select date_format(l.edate, '%Y') cyear ,max(substring(replace(replace(l.completeno, ' - N105 - ','N'), '호',''), -6)) seqNo from lect l - group by date_format(l.cdt, '%Y') + group by date_format(l.edate, '%Y') ) t2 on t2.cyear = t1.cyear ) c ) b @@ -442,10 +442,10 @@ and l.lectno =#lectno# ) t1 left outer join ( - select date_format(l.cdt, '%Y') cyear + select date_format(l.edate, '%Y') cyear ,max(substring(replace(replace(l.completeno, ' - N105 - ','N'), '호',''), -6)) seqNo from lect l - group by date_format(l.cdt, '%Y') + group by date_format(l.edate, '%Y') ) t2 on t2.cyear = t1.cyear ) c ) c on c.lectno = a.lectno @@ -459,7 +459,7 @@ ,a.dpoint=b.dpoint ,a.tpoint=b.apoint+b.mpoint+b.fpoint+b.spoint+b.dpoint ,a.completetime = case when b.ispass = 1 then c.completetime else null end - ,a.completeno = case when a.completeno is not null then a.completeno else case when b.ispass = 1 then c.completeno else null end end + ,a.completeno = c.completeno where a.status=1 and a.ischanged=0 and a.lectno = c.lectno and a.cmno = #cmno#