diff --git a/Dao/MyBatis/Maps/Lect.xml b/Dao/MyBatis/Maps/Lect.xml
index 8fc4775..0767676 100644
--- a/Dao/MyBatis/Maps/Lect.xml
+++ b/Dao/MyBatis/Maps/Lect.xml
@@ -1124,6 +1124,7 @@
,e.isgroup,e.payno
,u.username,null ccpositionname,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email,ua.asname
,1 rno
+ ,scd.estart,scd.eend
from lect a
inner join cm b on b.cmno=a.cmno and b.sstime <
@@ -1132,7 +1133,9 @@
inner join pay e on e.payno=a.payno and e.isgroup=0
inner join users u on u.userno=a.userno
left outer join assign ua on ua.asno=u.asno
+ left outer join cminningscd scd on scd.cmisno = a.cmisno
where a.userno=#userno# and a.status=1 and a.ischanged=0
+ and b.cshape=#cshape#
union all
select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete
,b.cmno,b.cname,b.cshape,b.sstime,b.setime,b.classno,b.isrefund
@@ -1140,6 +1143,7 @@
,e.isgroup,e.payno
,u.username,null ccpositionname,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email,ua.asname
,row_number() over(partition by e.payno) rno
+ ,null estart, null eend
from pay e
inner join lect a on a.payno=e.payno and a.status=1 and a.ischanged=0
inner join cm b on b.cmno=a.cmno and b.sstime <
@@ -1148,6 +1152,7 @@
inner join users u on u.userno=a.userno
left outer join assign ua on ua.asno=u.asno
where e.isgroup=1 and e.userno=#userno# and e.pstatus=1
+ and b.cshape=#cshape#
union all
select a.lectno,a.cmno,a.userno,a.isrebate,a.iscomplete
,b.cmno,b.cname,b.cshape,b.sstime,b.setime,b.classno,b.isrefund
@@ -1155,6 +1160,7 @@
,e.isgroup,e.payno
,u.username,null ccpositionname,CAST(AES_DECRYPT(UNHEX(u.email), ) AS char) email,ua.asname
,row_number() over(partition by e.payno) rno
+ ,null estart, null eend
from lect a0
inner join pay e on e.payno=a0.payno and e.isgroup=1 and e.userno<>#userno# and e.pstatus=1
inner join lect a on a.payno=e.payno and a.status=1 and a.ischanged=0
@@ -1164,6 +1170,7 @@
inner join users u on u.userno=a.userno
left outer join assign ua on ua.asno=u.asno
where a0.userno=#userno# and a0.status=1 and a0.ischanged=0
+ and b.cshape=#cshape#
order by case when setime < now() then 0 else 1 end desc,setime desc,payno