From 0a48ee276fe7a82e57f1b7c3b8f9823e1cd037ad Mon Sep 17 00:00:00 2001 From: lch Date: Tue, 15 Jun 2021 08:36:44 +0000 Subject: [PATCH] =?UTF-8?q?finishtime=20=EC=99=84=EB=A3=8C=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=20null=20=EC=98=A4=EB=A5=98=EB=A1=9C=20=EC=BF=BC?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A0=95=20,a.finishtime=3Dcase=20when=20?= =?UTF-8?q?a.finishtime=20is=20null=20=20and=20c.atime=20*=2060=20<=3D?= =?UTF-8?q?=20d.totstudy=20then=20now()=20else=20null=20end=20->=20,a.fini?= =?UTF-8?q?shtime=3Dcase=20when=20a.finishtime=20is=20null=20=20and=20c.at?= =?UTF-8?q?ime=20*=2060=20<=3D=20d.totstudy=20then=20now()=20else=20a.f?= =?UTF-8?q?inishtime=20end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dao/MyBatis/Maps/CRoom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dao/MyBatis/Maps/CRoom.xml b/Dao/MyBatis/Maps/CRoom.xml index 8318b83..01fd993 100644 --- a/Dao/MyBatis/Maps/CRoom.xml +++ b/Dao/MyBatis/Maps/CRoom.xml @@ -296,7 +296,7 @@ ,a.totstudy=d.totstudy ,a.etime=now() ,a.istatus=case when a.istatus <> 2 and c.atime * 60 <= d.totstudy then 2 else a.istatus end - ,a.finishtime=case when a.finishtime is null and c.atime * 60 <= d.totstudy then now() else null end + ,a.finishtime=case when a.finishtime is null and c.atime * 60 <= d.totstudy then now() else a.finishtime end ,a.eip=#uip#,a.ispce=#ispc# ,a.psec=#psec# where a.lectno=#lectno# and a.cmino=#cmino#;