finishtime 완료시간 null 오류로 쿼리 수정

,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
This commit is contained in:
lch 2021-06-15 08:36:44 +00:00
parent 40e5b863d9
commit 0a48ee276f
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@
,a.totstudy=d.totstudy ,a.totstudy=d.totstudy
,a.etime=now() ,a.etime=now()
,a.istatus=case when a.istatus <> 2 and c.atime * 60 <= d.totstudy then 2 else a.istatus end ,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.eip=#uip#,a.ispce=#ispc#
,a.psec=#psec# ,a.psec=#psec#
where a.lectno=#lectno# and a.cmino=#cmino#; where a.lectno=#lectno# and a.cmino=#cmino#;