| 
														
															@@ -4,6 +4,7 @@ import com.ym.mec.auth.api.entity.SysUser; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dao.ChildrenDayReserveDao; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dao.ChildrenDayReserveDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dao.DegreeLevelFeeDao; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dao.DegreeLevelFeeDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dao.MusicGroupDao; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dao.MusicGroupDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.biz.dal.dto.ChildrenStatisticsDto; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dao.OrganizationDegreeCourseFeeDao; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dao.OrganizationDegreeCourseFeeDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dto.DegreeFeeDto; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dto.DegreeFeeDto; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.ChildrenDayReserve; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.ChildrenDayReserve; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -11,13 +12,21 @@ import com.ym.mec.biz.dal.entity.DegreeLevelFee; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.MusicGroup; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.MusicGroup; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.OrganizationDegreeCourseFee; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.OrganizationDegreeCourseFee; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.enums.YesOrNoEnum; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.enums.YesOrNoEnum; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.biz.dal.page.ChildrenReserveQueryInfo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.service.ChildrenDayReserveService; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.service.ChildrenDayReserveService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.dal.BaseDAO; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.dal.BaseDAO; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.exception.BizException; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.exception.BizException; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.common.page.PageInfo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.common.service.impl.BaseServiceImpl; 
														 | 
														
														 | 
														
															 import com.ym.mec.common.service.impl.BaseServiceImpl; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.util.collection.MapUtil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
														
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.stereotype.Service; 
														 | 
														
														 | 
														
															 import org.springframework.stereotype.Service; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import java.util.ArrayList; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import java.util.HashMap; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import java.util.List; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import java.util.Map; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.util.List; 
														 | 
														
														 | 
														
															 import java.util.List; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 @Service 
														 | 
														
														 | 
														
															 @Service 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -62,6 +71,26 @@ public class ChildrenDayReserveServiceImpl extends BaseServiceImpl<Integer, Chil 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Override 
														 | 
														
														 | 
														
															     @Override 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    public PageInfo<ChildrenStatisticsDto> queryStatisticsPage(ChildrenReserveQueryInfo queryInfo) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        PageInfo<ChildrenStatisticsDto> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Map<String, Object> params = new HashMap<String, Object>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        MapUtil.populateMap(params, queryInfo); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        List<ChildrenStatisticsDto> dataList = null; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        int count = childrenDayReserveDao.countChildrenStatistics(params);; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (count > 0) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            pageInfo.setTotal(count); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            params.put("offset", pageInfo.getOffset()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            dataList = childrenDayReserveDao.queryChildrenStatistics(params); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (count == 0) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            dataList = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        pageInfo.setRows(dataList); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        return pageInfo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Override 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public DegreeFeeDto getFeeInfo(Integer organId) { 
														 | 
														
														 | 
														
															     public DegreeFeeDto getFeeInfo(Integer organId) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<DegreeLevelFee> degreeLevelFee = degreeLevelFeeDao.getAll(); 
														 | 
														
														 | 
														
															         List<DegreeLevelFee> degreeLevelFee = degreeLevelFeeDao.getAll(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         OrganizationDegreeCourseFee courseFee = organizationDegreeCourseFeeDao.getByOrganId(organId); 
														 | 
														
														 | 
														
															         OrganizationDegreeCourseFee courseFee = organizationDegreeCourseFeeDao.getByOrganId(organId); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -70,6 +99,4 @@ public class ChildrenDayReserveServiceImpl extends BaseServiceImpl<Integer, Chil 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         degreeFeeDto.setOrganizationDegreeCourseFee(courseFee); 
														 | 
														
														 | 
														
															         degreeFeeDto.setOrganizationDegreeCourseFee(courseFee); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return degreeFeeDto; 
														 | 
														
														 | 
														
															         return degreeFeeDto; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |