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;