diff --git a/Dao/MyBatis/Maps/Grade.xml b/Dao/MyBatis/Maps/Grade.xml
index 35187e6..b4991a9 100644
--- a/Dao/MyBatis/Maps/Grade.xml
+++ b/Dao/MyBatis/Maps/Grade.xml
@@ -1062,7 +1062,7 @@
ifnull(b.iscomplete,0)=#iscomplete#
b.cmisno = #cmisno# (case when a.cshape = 0 and b.isrebate = 0 then p.payoktime else b.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
-
+ (case when a.cshape = 2 then e.eend else b.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end),'%Y-%m-%d') = #edate#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) >= #edate1#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) <= #edate2#
@@ -1102,7 +1102,7 @@
ifnull(b.iscomplete,0)=#iscomplete#
b.cmisno = #cmisno# (case when a.cshape = 0 and b.isrebate = 0 then p.payoktime else b.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
-
+ (case when a.cshape = 2 then e.eend else b.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end),'%Y-%m-%d') = #edate#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) >= #edate1#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) <= #edate2#
@@ -1143,7 +1143,7 @@
ifnull(b.iscomplete,0)=#iscomplete#
b.cmisno = #cmisno#
(case when a.cshape = 0 and b.isrebate = 0 then p.payoktime else b.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
-
+ (case when a.cshape = 2 then e.eend else b.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end),'%Y-%m-%d') = #edate#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) >= #edate1#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) <= #edate2#
@@ -1183,7 +1183,7 @@
ifnull(b.iscomplete,0)=#iscomplete#
b.cmisno = #cmisno# (case when a.cshape = 0 and b.isrebate = 0 then p.payoktime else b.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
-
+ (case when a.cshape = 2 then e.eend else b.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end),'%Y-%m-%d') = #edate#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) >= #edate1#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) <= #edate2#
@@ -1223,7 +1223,7 @@
ifnull(b.iscomplete,0)=#iscomplete#
b.cmisno = #cmisno# (case when a.cshape = 0 and b.isrebate = 0 then p.payoktime else b.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
-
+ (case when a.cshape = 2 then e.eend else b.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end),'%Y-%m-%d') = #edate#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) >= #edate1#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) <= #edate2#
@@ -1263,7 +1263,7 @@
ifnull(b.iscomplete,0)=#iscomplete#
b.cmisno = #cmisno# (case when a.cshape = 0 and b.isrebate = 0 then p.payoktime else b.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
-
+ (case when a.cshape = 2 then e.eend else b.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end),'%Y-%m-%d') = #edate#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) >= #edate1#
(case when a.cshape = 2 and e.eend is not null then e.eend else b.edate end) <= #edate2#
@@ -1587,8 +1587,8 @@
(u.userid like concat('%',#usernameid#,'%') or u.username like concat('%',#usernameid#,'%') or u.usernameeng like concat('%',#usernameid#,'%'))
ifnull(l.iscomplete,0)=#iscomplete#
l.cmisno = #cmisno#
-
-
+ (case when c.cshape = 0 and l.isrebate = 0 then p.payoktime else l.sdate end) >= date_format(#sdateall#,'%Y-%m-%d 00:00:00')
+ (case when c.cshape = 2 then cis.eend else l.edate end) <= date_format(#edateall#,'%Y-%m-%d 23:59:59')
date_format((case when c.cshape = 2 and cis.eend is not null then cis.eend else l.edate end),'%Y-%m-%d') = #edate#
(case when c.cshape = 2 and cis.eend is not null then cis.eend else l.edate end) >= #edate1#
(case when c.cshape = 2 and cis.eend is not null then cis.eend else l.edate end) <= #edate2#