<단순작업>

1. 개발용으로 단순변경 - {교육장교육인 경우, 일정변경하면 (lect.sdate)교육시작일도 변경}
This commit is contained in:
zdrcft 2023-01-10 05:13:29 +00:00
parent 10a7d2d7fa
commit 5781d0a575
1 changed files with 10 additions and 2 deletions

View File

@ -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 &lt;&gt; 1;
</update>
<select id="lect.checkuser.cmisno" parameterClass="hashtable" resultClass="int">
select count(c.cmisno )