<단순작업>
1. 개발용으로 단순변경 - {교육장교육인 경우, 일정변경하면 (lect.sdate)교육시작일도 변경}
This commit is contained in:
parent
10a7d2d7fa
commit
5781d0a575
|
|
@ -2383,8 +2383,16 @@
|
||||||
|
|
||||||
update lect a
|
update lect a
|
||||||
left outer join cminningscd b on b.cmisno = a.cmisno
|
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
|
left outer join cm c on a.cmno = c.cmno
|
||||||
where a.lectno = #lectno#;
|
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;
|
||||||
</update>
|
</update>
|
||||||
<select id="lect.checkuser.cmisno" parameterClass="hashtable" resultClass="int">
|
<select id="lect.checkuser.cmisno" parameterClass="hashtable" resultClass="int">
|
||||||
select count(c.cmisno )
|
select count(c.cmisno )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue