| | |
| | | @Override |
| | | public Object getGridStatistics(String code, String roleType) { |
| | | Map<String, Object> objectObjectHashMap = new HashMap<>(); |
| | | if (roleType.equals("1")) { |
| | | Integer gridStatistics = baseMapper.getGridStatistics(code, AuthUtil.getUserId()); |
| | | Integer companyStatistics = baseMapper.getCompanyStatistics(code, AuthUtil.getUserId()); |
| | | if (roleType.equals("2")) { |
| | | 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, null); |
| | | 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; |
| | | } |
| | | |
| | | /** |
| | | * 网格员表 自定义详情 |
| | | */ |
| | | @Override |
| | | public GridmanVO getDetail(GridmanEntity gridman) { |
| | | return baseMapper.getDetail(gridman); |
| | | } |
| | | } |