| | |
| | | public Object getGridStatistics(String code, String roleType) { |
| | | Map<String, Object> objectObjectHashMap = new HashMap<>(); |
| | | if (roleType.equals("2")) { |
| | | Integer gridStatistics = baseMapper.getGridStatistics(code, null); |
| | | Integer companyStatistics = baseMapper.getCompanyStatistics(code, null); |
| | | Integer gridStatistics = baseMapper.getGridStatistics(code, null, roleType); |
| | | Integer companyStatistics = baseMapper.getCompanyStatistics(code, null, roleType); |
| | | Integer ownersCommitteeStatistics = baseMapper.getOwnersCommitteeStatistics(code, null, roleType); |
| | | objectObjectHashMap.put("gridStatistics", gridStatistics); |
| | | objectObjectHashMap.put("companyStatistics", companyStatistics); |
| | | objectObjectHashMap.put("ownersStatistics", ownersCommitteeStatistics); |
| | | } else { |
| | | |
| | | Integer gridStatistics = baseMapper.getGridStatistics(code, AuthUtil.getUserId()); |
| | | Integer companyStatistics = baseMapper.getCompanyStatistics(code, AuthUtil.getUserId()); |
| | | Integer gridStatistics = baseMapper.getGridStatistics(code, AuthUtil.getUserId(), roleType); |
| | | Integer companyStatistics = baseMapper.getCompanyStatistics(code, AuthUtil.getUserId(), roleType); |
| | | Integer ownersCommitteeStatistics = baseMapper.getOwnersCommitteeStatistics(code, AuthUtil.getUserId(), roleType); |
| | | objectObjectHashMap.put("gridStatistics", gridStatistics); |
| | | objectObjectHashMap.put("companyStatistics", companyStatistics); |
| | | objectObjectHashMap.put("ownersStatistics", ownersCommitteeStatistics); |
| | | |
| | | } |
| | | return objectObjectHashMap; |
| | | } |