| 
														
															@@ -71,35 +71,42 @@ public class ReportStaticServiceImpl implements ReportStaticService { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Map<String, Object> resultMap = new HashMap<>(); 
														 | 
														
														 | 
														
															         Map<String, Object> resultMap = new HashMap<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         String reportId = vo.getReportId(); 
														 | 
														
														 | 
														
															         String reportId = vo.getReportId(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        String type = vo.getType(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<String> reportIds = vo.getReportIds(); 
														 | 
														
														 | 
														
															         List<String> reportIds = vo.getReportIds(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        String type = vo.getType(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        List<Map<String, Object>> list = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if(reportIds != null && reportIds.size() > 0){ 
														 | 
														
														 | 
														
															         if(reportIds != null && reportIds.size() > 0){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            List<Map<String, Object>> list = new ArrayList<>(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             for (String id: reportIds) { 
														 | 
														
														 | 
														
															             for (String id: reportIds) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Map<String, Object> map = new HashMap<>(); 
														 | 
														
														 | 
														
															                 Map<String, Object> map = new HashMap<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 ReportBaseInfo info = reportStaticMapper.selectReportBaseInfo(id, vo.getReportType(), null); 
														 | 
														
														 | 
														
															                 ReportBaseInfo info = reportStaticMapper.selectReportBaseInfo(id, vo.getReportType(), null); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if("1".equals(type)){ 
														 | 
														
														 | 
														
															                 if("1".equals(type)){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     String sql = callSqlFormat(vo, info.getBaseSql(), info.getGatherSql(), "", info.getReportSort()); 
														 | 
														
														 | 
														
															                     String sql = callSqlFormat(vo, info.getBaseSql(), info.getGatherSql(), "", info.getReportSort()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     String result = reportStaticMapper.selectReportTotal(sql); 
														 | 
														
														 | 
														
															                     String result = reportStaticMapper.selectReportTotal(sql); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    resultMap.put(info.getReportName(), result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    map.put("label", info.getReportName()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    map.put("value", result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    list.add(map); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    resultMap.put(info.getReportId(), list); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } else if("2".equals(type)) { 
														 | 
														
														 | 
														
															                 } else if("2".equals(type)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    String gatherSql = info.getGatherSql() + " as num,  t." + vo.getGroupColumn() + " "; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    String gatherSql = info.getGatherSql() + " as value,  t." + vo.getGroupColumn() + " "; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     String sql = callSqlFormat(vo, info.getBaseSql(), gatherSql, vo.getGroupColumn(), info.getReportSort()); 
														 | 
														
														 | 
														
															                     String sql = callSqlFormat(vo, info.getBaseSql(), gatherSql, vo.getGroupColumn(), info.getReportSort()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     List<Map<String, Object>> l = reportStaticMapper.selectReportRegList(sql); 
														 | 
														
														 | 
														
															                     List<Map<String, Object>> l = reportStaticMapper.selectReportRegList(sql); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    resultMap.put(info.getReportName(), l); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    resultMap.put(info.getReportId(), l); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } else { 
														 | 
														
														 | 
														
															         } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            Map<String, Object> map = new HashMap<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ReportBaseInfo info = reportStaticMapper.selectReportBaseInfo(reportId, vo.getReportType(), null); 
														 | 
														
														 | 
														
															             ReportBaseInfo info = reportStaticMapper.selectReportBaseInfo(reportId, vo.getReportType(), null); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if("1".equals(type)) { 
														 | 
														
														 | 
														
															             if("1".equals(type)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 String sql = callSqlFormat(vo, info.getBaseSql(), info.getGatherSql(), "", info.getReportSort()); 
														 | 
														
														 | 
														
															                 String sql = callSqlFormat(vo, info.getBaseSql(), info.getGatherSql(), "", info.getReportSort()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 String result = reportStaticMapper.selectReportTotal(sql); 
														 | 
														
														 | 
														
															                 String result = reportStaticMapper.selectReportTotal(sql); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                resultMap.put(info.getReportName(), result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                map.put("label", info.getReportName()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                map.put("value", result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                list.add(map); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                resultMap.put(reportId, list); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } else if("2".equals(type)) { 
														 | 
														
														 | 
														
															             } else if("2".equals(type)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                String gatherSql = info.getGatherSql() + " as num,  t." + vo.getGroupColumn() + " "; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                String gatherSql = info.getGatherSql() + " as value,  t." + vo.getGroupColumn() + " "; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 String sql = callSqlFormat(vo, info.getBaseSql(), gatherSql, vo.getGroupColumn(), info.getReportSort()); 
														 | 
														
														 | 
														
															                 String sql = callSqlFormat(vo, info.getBaseSql(), gatherSql, vo.getGroupColumn(), info.getReportSort()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 List<Map<String, Object>> l = reportStaticMapper.selectReportRegList(sql); 
														 | 
														
														 | 
														
															                 List<Map<String, Object>> l = reportStaticMapper.selectReportRegList(sql); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                resultMap.put(info.getReportName(), l); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                resultMap.put(info.getReportId(), l); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return resultMap; 
														 | 
														
														 | 
														
															         return resultMap; 
														 |