From 52adaa7801c53a04af919307c3c7a483342fc4ab Mon Sep 17 00:00:00 2001 From: hyunho Date: Fri, 5 Mar 2021 08:46:02 +0000 Subject: [PATCH] --- Dao/MyBatis/Maps/Pay.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Dao/MyBatis/Maps/Pay.xml b/Dao/MyBatis/Maps/Pay.xml index 653baf3..f355c11 100644 --- a/Dao/MyBatis/Maps/Pay.xml +++ b/Dao/MyBatis/Maps/Pay.xml @@ -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#; + + + 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 paydvr set