This commit is contained in:
hyunho 2021-03-05 08:46:02 +00:00
parent 43e5d35e7e
commit 52adaa7801
1 changed files with 11 additions and 0 deletions

View File

@ -273,6 +273,17 @@
inner join pplog l on a.pplno = l.pplno
left outer join assign ua on ua.asno=u.asno
where a.payno=#payno#;
<!--수강시작일 / 종료일 추가 2021-01-21-->
update lect a
inner join cm b on a.cmno = b.cmno
inner join pay c on a.payno = c.payno
set
a.sdate = case when date_format(b.retime,'%Y-%m-%d')='2099-12-31' and b.cshape &lt;&gt; 1 then date_format(c.payoktime,'%Y-%m-%d 00:00:00')
else b.sstime end,
a.edate = case when date_format(b.retime,'%Y-%m-%d')='2099-12-31' and b.cshape &lt;&gt; 1 then date_format(date_add(c.payoktime,interval b.studydays day),'%Y-%m-%d 23:59:59')
else b.setime end
where a.payno = #payno# and c.pstatus = 1
</update>
<update id="pay.paydvr.save" parameterClass="hashtable">
update paydvr set <include refid="sql.up"></include>