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