This commit is contained in:
parent
43e5d35e7e
commit
52adaa7801
|
|
@ -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 <> 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 <> 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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue