|
@@ -495,7 +495,7 @@ public class IotStaticController {
|
|
public CommonResult<List<Map<String, Object>>> getDeviceStatusStat(@PathVariable("dept") String dept) {
|
|
public CommonResult<List<Map<String, Object>>> getDeviceStatusStat(@PathVariable("dept") String dept) {
|
|
Set<Long> ids = getDeptIds(dept);
|
|
Set<Long> ids = getDeptIds(dept);
|
|
IotDevicePageReqVO iotDevicePageReqVO = new IotDevicePageReqVO();
|
|
IotDevicePageReqVO iotDevicePageReqVO = new IotDevicePageReqVO();
|
|
- iotDevicePageReqVO.setDeviceIds(new ArrayList<>(ids));
|
|
|
|
|
|
+ iotDevicePageReqVO.setDeptIds(new ArrayList<>(ids));
|
|
List<IotDeviceDO> iotDeviceDOS = iotDeviceMapper.selectList(iotDevicePageReqVO);
|
|
List<IotDeviceDO> iotDeviceDOS = iotDeviceMapper.selectList(iotDevicePageReqVO);
|
|
Map<String, Long> order = iotDeviceDOS.stream().collect(Collectors.groupingBy(IotDeviceDO::getDeviceStatus, Collectors.counting()));
|
|
Map<String, Long> order = iotDeviceDOS.stream().collect(Collectors.groupingBy(IotDeviceDO::getDeviceStatus, Collectors.counting()));
|
|
List<Map<String, Object>> results = new ArrayList<>();
|
|
List<Map<String, Object>> results = new ArrayList<>();
|
|
@@ -515,7 +515,7 @@ public class IotStaticController {
|
|
public CommonResult<List<Map<String, Object>>> getDeviceTypeStat(@PathVariable("dept") String dept) {
|
|
public CommonResult<List<Map<String, Object>>> getDeviceTypeStat(@PathVariable("dept") String dept) {
|
|
Set<Long> ids = getDeptIds(dept);
|
|
Set<Long> ids = getDeptIds(dept);
|
|
IotDevicePageReqVO iotDevicePageReqVO = new IotDevicePageReqVO();
|
|
IotDevicePageReqVO iotDevicePageReqVO = new IotDevicePageReqVO();
|
|
- iotDevicePageReqVO.setDeviceIds(new ArrayList<>(ids));
|
|
|
|
|
|
+ iotDevicePageReqVO.setDeptIds(new ArrayList<>(ids));
|
|
List<IotDeviceDO> iotDeviceDOS = iotDeviceMapper.selectList(iotDevicePageReqVO);
|
|
List<IotDeviceDO> iotDeviceDOS = iotDeviceMapper.selectList(iotDevicePageReqVO);
|
|
LinkedList<Map<String, Object>> results = new LinkedList<>();
|
|
LinkedList<Map<String, Object>> results = new LinkedList<>();
|
|
if ("rh".equals(dept)) {
|
|
if ("rh".equals(dept)) {
|