Browse Source

#AI告警

zhongwei
yang_shj 1 year ago
parent
commit
abbf215229
  1. 7
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmInfoController.java
  2. 2
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/IEmInfoService.java
  3. 11
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java

7
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmInfoController.java

@ -413,4 +413,11 @@ public class EmInfoController extends BladeController {
public R<List<JSONObject>> getEmTreeByDeptAndParentCode(@ApiParam("机构ID") Long deptId, @ApiParam("父级设备编号") String parentCode) {
return R.data(em_infoService.getEmTreeByDeptAndParentCode(deptId,parentCode));
}
@GetMapping("/hkVideoDevices")
@ApiOperationSupport(order = 12)
@ApiOperation(value = "海康视频设备获取")
public R<List<EmInfoEntity>> hkVideoDevices() {
return R.data(em_infoService.hkVideoDevices());
}
}

2
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/IEmInfoService.java

@ -89,4 +89,6 @@ public interface IEmInfoService extends BaseService<EmInfoEntity> {
List<JSONObject> getEmTreeByDeptAndParentCode(Long deptId, String parentCode);
List<EmInfoEntity> getVideoDeviceByEmCode(EmInfoEntity emInfo);
List<EmInfoEntity> hkVideoDevices();
}

11
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java

@ -900,4 +900,15 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit
projectClient.addProjectAndContent(projectDTOList);
}
}
/**
* 海康视频获取接口
* @return
*/
@Override
public List<EmInfoEntity> hkVideoDevices() {
return this.list(Wrappers.<EmInfoEntity>lambdaQuery()
.eq(EmInfoEntity::getEmType,4));
}
}

Loading…
Cancel
Save