From 5781d0a575ca6603a5f7dc8f38c5552a2cbb3863 Mon Sep 17 00:00:00 2001 From: zdrcft Date: Tue, 10 Jan 2023 05:13:29 +0000 Subject: [PATCH] =?UTF-8?q?<=EB=8B=A8=EC=88=9C=EC=9E=91=EC=97=85>=201.=20?= =?UTF-8?q?=EA=B0=9C=EB=B0=9C=EC=9A=A9=EC=9C=BC=EB=A1=9C=20=EB=8B=A8?= =?UTF-8?q?=EC=88=9C=EB=B3=80=EA=B2=BD=20-=20{=EA=B5=90=EC=9C=A1=EC=9E=A5?= =?UTF-8?q?=EA=B5=90=EC=9C=A1=EC=9D=B8=20=EA=B2=BD=EC=9A=B0,=20=EC=9D=BC?= =?UTF-8?q?=EC=A0=95=EB=B3=80=EA=B2=BD=ED=95=98=EB=A9=B4=20(lect.sdate)?= =?UTF-8?q?=EA=B5=90=EC=9C=A1=EC=8B=9C=EC=9E=91=EC=9D=BC=EB=8F=84=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/Lect.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml index 0871e0f..d1bdc32 100644 --- a/Dao/MyBatis/Maps/Lect.xml +++ b/Dao/MyBatis/Maps/Lect.xml @@ -2383,8 +2383,16 @@ update lect a left outer join cminningscd b on b.cmisno = a.cmisno - set a.edate = case when a.edate is not null then case when b.eend is not null then date_format(b.eend,'%Y-%m-%d 23:59:59') else a.edate end else a.edate end - where a.lectno = #lectno#; + left outer join cm c on a.cmno = c.cmno + set a.edate = (case when b.eend is not null then date_format(b.eend,'%Y-%m-%d 23:59:59') else a.edate end) + ,a.sdate = (case when b.estart is not null then date_format(b.estart,'%Y-%m-%d 00:00:00') else a.sdate end) + where a.lectno = #lectno# and c.cshape = 1; + + update lect a + left outer join cminningscd b on b.cmisno = a.cmisno + left outer join cm c on a.cmno = c.cmno + set a.edate = case when b.eend is not null then date_format(b.eend,'%Y-%m-%d 23:59:59') else a.edate end + where a.lectno = #lectno# and c.cshape <> 1;