|
|
@@ -48,6 +48,15 @@ public class IotWarnlogController extends BaseController{
|
|
|
List<IotWarnlogResVo> list = iotWarnlogService.selectIotWarnlogResVoList(iotWarnlog);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 查询告警记录列表
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('iot:warn:record:list')")
|
|
|
+ @GetMapping("/last/unread/{devBid}")
|
|
|
+ public AjaxResult lastUnread(@PathVariable String devBid){
|
|
|
+ return AjaxResult.success(iotWarnlogService.selectIotWarnlogLastUnread(devBid,SecurityUtils.getTid()));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 导出告警记录列表
|