From 74f2b5f62068aeb38332c0bf075cfff7916c8b1d Mon Sep 17 00:00:00 2001 From: kdh0120 Date: Tue, 11 May 2021 01:34:48 +0000 Subject: [PATCH] --- Dao/MyBatis/Maps/Pay.xml | 10 ++++++++++ FO/Web.config | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Dao/MyBatis/Maps/Pay.xml b/Dao/MyBatis/Maps/Pay.xml index 0847d9b..62dae45 100644 --- a/Dao/MyBatis/Maps/Pay.xml +++ b/Dao/MyBatis/Maps/Pay.xml @@ -410,6 +410,16 @@ ,a.status=1 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; + - +