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;
+
-
+