班级考勤部分代码
This commit is contained in:
		| @@ -2,6 +2,7 @@ package com.ruoyi.project.benyi.controller; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import java.util.ArrayList; | ||||
| import com.ruoyi.common.utils.SecurityUtils; | ||||
| import com.ruoyi.project.common.SchoolCommon; | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| @@ -172,13 +173,21 @@ public class ByChildController extends BaseController { | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询班级信息列表 | ||||
|      * 查询幼儿考勤信息列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('system:child:list')" + "||@ss.hasPermi('benyi:checkindetail:list')") | ||||
|     @GetMapping("/checklist") | ||||
|     public TableDataInfo checklist(ByChild byClass) { | ||||
|         startPage(); | ||||
|         List<ByChild> list = byChildService.selectststicstClassList(byClass); | ||||
|         return getDataTable(list); | ||||
|         String strClassId = schoolCommon.getClassId(); | ||||
|         if (!schoolCommon.isStringEmpty(strClassId)) { | ||||
|             startPage(); | ||||
|             byClass.setClassid(strClassId); | ||||
|             List<ByChild> list = byChildService.selectststicstClassList(byClass); | ||||
|             return getDataTable(list); | ||||
|         } else { | ||||
|             List<ByChild> list = new ArrayList<>(); | ||||
|             return getDataTable(list); | ||||
|         } | ||||
|  | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -412,104 +412,286 @@ | ||||
|     <select id="selectststicstClassList" parameterType="ByChild" | ||||
|             resultMap="ByChildResult"> | ||||
|         select c.id,c.classid,c.name, | ||||
|         (select count(*) from by_child where id=c.id) as childcount, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-01') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day1, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-02') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day2, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-03') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day3, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-04') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day4, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-05') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day5, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-06') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day6, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-07') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day7, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-08') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day8, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-09') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day9, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-10') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day10, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-11') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day11, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-12') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day12, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-13') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day13, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-14') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day14, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-15') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day15, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-16') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day16, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-17') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day17, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-18') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day18, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-19') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day19, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-20') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day20, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-21') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day21, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-22') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day22, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-23') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day23, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-24') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day24, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-25') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day25, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-26') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day26, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-27') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day27, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-28') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day28, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-29') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day29, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-30') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day30, | ||||
|         ((select count(*) from by_child_checkin_detail where classid=d.bjbh and | ||||
|         date_format(create_time,'%Y-%m-%d')=concat(#{month},'-31') and type='01')/(select count(*) from by_child where | ||||
|         classid=d.bjbh)) as day31 | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-01') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-01') | ||||
|         and type='01')) as day1, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-02') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-02') | ||||
|         and type='01')) as day2, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-03') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-03') | ||||
|         and type='01')) as day3, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-04') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-04') | ||||
|         and type='01')) as day4, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-05') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-05') | ||||
|         and type='01')) as day5, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-06') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-06') | ||||
|         and type='01')) as day6, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-07') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-07') | ||||
|         and type='01')) as day7, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-08') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-08') | ||||
|         and type='01')) as day8, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-09') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-09') | ||||
|         and type='01')) as day9, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-10') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-10') | ||||
|         and type='01')) as day10, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-11') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-11') | ||||
|         and type='01')) as day11, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-12') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-12') | ||||
|         and type='01')) as day12, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-13') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-13') | ||||
|         and type='01')) as day13, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-14') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-14') | ||||
|         and type='01')) as day14, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-15') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-15') | ||||
|         and type='01')) as day15, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-16') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-16') | ||||
|         and type='01')) as day16, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-17') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-17') | ||||
|         and type='01')) as day17, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-18') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-18') | ||||
|         and type='01')) as day18, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-19') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-19') | ||||
|         and type='01')) as day19, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-20') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-20') | ||||
|         and type='01')) as day20, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-21') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-21') | ||||
|         and type='01')) as day21, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-22') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-22') | ||||
|         and type='01')) as day22, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-23') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-23') | ||||
|         and type='01')) as day23, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-24') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-24') | ||||
|         and type='01')) as day24, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-25') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-25') | ||||
|         and type='01')) as day25, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-26') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-26') | ||||
|         and type='01')) as day26, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-27') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-27') | ||||
|         and type='01')) as day27, | ||||
|  | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-28') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-28') | ||||
|         and type='01')) as day28, | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-29') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-29') | ||||
|         and type='01')) as day29, | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-30') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-30') | ||||
|         and type='01')) as day30, | ||||
|         ((select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-31') | ||||
|         and type='01')/ | ||||
|         (select count(*) from by_child_checkin_detail | ||||
|         where childid=c.id | ||||
|         and date_format(create_time,'%Y-%m-%d')=concat(#{month},'-31') | ||||
|         and type='01')) as day31 | ||||
|         from by_child c | ||||
|         where d.isdel='0' | ||||
|         where c.status='0' and c.classid | ||||
|         <if test="classid != null  and classid != ''">and c.classid = #{classid}</if> | ||||
|         <!-- 数据范围过滤 --> | ||||
|         ${dataScope} | ||||
| --         ${dataScope} | ||||
|     </select> | ||||
|  | ||||
| </mapper> | ||||
		Reference in New Issue
	
	Block a user