فهرست منبع

初始化告警相关的代码

liuyaowen 11 ماه پیش
والد
کامیت
1a4763cd12
40فایلهای تغییر یافته به همراه3227 افزوده شده و 0 حذف شده
  1. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnconfigController.java
  2. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarncountController.java
  3. 94 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarndataitemController.java
  4. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnindicatorController.java
  5. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnlogController.java
  6. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnobjectController.java
  7. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnpolicyController.java
  8. 97 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnreceiverController.java
  9. 63 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnconfigMapper.java
  10. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarncountMapper.java
  11. 61 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarndataitemMapper.java
  12. 63 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnindicatorMapper.java
  13. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnlogMapper.java
  14. 63 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnobjectMapper.java
  15. 63 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnpolicyMapper.java
  16. 63 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnreceiverMapper.java
  17. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnconfigService.java
  18. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarncountService.java
  19. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarndataitemService.java
  20. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnindicatorService.java
  21. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnlogService.java
  22. 62 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnobjectService.java
  23. 61 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnpolicyService.java
  24. 61 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnreceiverService.java
  25. 87 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnconfigServiceImpl.java
  26. 88 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarncountServiceImpl.java
  27. 88 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarndataitemServiceImpl.java
  28. 88 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnindicatorServiceImpl.java
  29. 88 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnlogServiceImpl.java
  30. 87 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnobjectServiceImpl.java
  31. 88 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnpolicyServiceImpl.java
  32. 88 0
      src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnreceiverServiceImpl.java
  33. 111 0
      src/main/resources/mapper/IotWarnconfigMapper.xml
  34. 81 0
      src/main/resources/mapper/IotWarncountMapper.xml
  35. 86 0
      src/main/resources/mapper/IotWarndataitemMapper.xml
  36. 101 0
      src/main/resources/mapper/IotWarnindicatorMapper.xml
  37. 126 0
      src/main/resources/mapper/IotWarnlogMapper.xml
  38. 76 0
      src/main/resources/mapper/IotWarnobjectMapper.xml
  39. 106 0
      src/main/resources/mapper/IotWarnpolicyMapper.xml
  40. 71 0
      src/main/resources/mapper/IotWarnreceiverMapper.xml

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnconfigController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnconfig;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnconfigService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警配置Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/config")
+public class IotWarnconfigController extends BaseController{
+    @Autowired
+    private IIotWarnconfigService iotWarnconfigService;
+
+    /**
+     * 查询告警配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:config:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarnconfig iotWarnconfig){
+        iotWarnconfig.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarnconfig> list = iotWarnconfigService.selectIotWarnconfigList(iotWarnconfig);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:config:export')")
+    @Log(title = "告警配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarnconfig iotWarnconfig){
+        iotWarnconfig.setTid(SecurityUtils.getTid());
+        List<IotWarnconfig> list = iotWarnconfigService.selectIotWarnconfigList(iotWarnconfig);
+        ExcelUtil<IotWarnconfig> util = new ExcelUtil<IotWarnconfig>(IotWarnconfig.class);
+        util.exportExcel(response, list, "告警配置数据");
+    }
+
+    /**
+     * 获取告警配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:config:query')")
+    @GetMapping(value = "/info/{wcBid}")
+    public AjaxResult getInfo(@PathVariable("wcBid") String wcBid){
+        return success(iotWarnconfigService.selectIotWarnconfigByWcBid(wcBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警配置
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:config:add')")
+    @Log(title = "告警配置", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarnconfig iotWarnconfig){
+        iotWarnconfig.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnconfigService.insertIotWarnconfig(iotWarnconfig));
+    }
+
+    /**
+     * 修改告警配置
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:config:edit')")
+    @Log(title = "告警配置", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarnconfig iotWarnconfig){
+        iotWarnconfig.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnconfigService.updateIotWarnconfig(iotWarnconfig));
+    }
+
+    /**
+     * 删除告警配置
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:config:remove')")
+    @Log(title = "告警配置", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wcBids}")
+    public AjaxResult remove(@PathVariable String[] wcBids){
+        return toAjax(iotWarnconfigService.deleteIotWarnconfigWcBids(wcBids,SecurityUtils.getTid()));
+    }
+}

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarncountController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarncount;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarncountService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警触发次数Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/count")
+public class IotWarncountController extends BaseController{
+    @Autowired
+    private IIotWarncountService iotWarncountService;
+
+    /**
+     * 查询告警触发次数列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:count:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarncount iotWarncount){
+        iotWarncount.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarncount> list = iotWarncountService.selectIotWarncountList(iotWarncount);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警触发次数列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:count:export')")
+    @Log(title = "告警触发次数", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarncount iotWarncount){
+        iotWarncount.setTid(SecurityUtils.getTid());
+        List<IotWarncount> list = iotWarncountService.selectIotWarncountList(iotWarncount);
+        ExcelUtil<IotWarncount> util = new ExcelUtil<IotWarncount>(IotWarncount.class);
+        util.exportExcel(response, list, "告警触发次数数据");
+    }
+
+    /**
+     * 获取告警触发次数详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:count:query')")
+    @GetMapping(value = "/info/{wctBid}")
+    public AjaxResult getInfo(@PathVariable("wctBid") String wctBid){
+        return success(iotWarncountService.selectIotWarncountByWctBid(wctBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警触发次数
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:count:add')")
+    @Log(title = "告警触发次数", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarncount iotWarncount){
+        iotWarncount.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarncountService.insertIotWarncount(iotWarncount));
+    }
+
+    /**
+     * 修改告警触发次数
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:count:edit')")
+    @Log(title = "告警触发次数", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarncount iotWarncount){
+        iotWarncount.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarncountService.updateIotWarncount(iotWarncount));
+    }
+
+    /**
+     * 删除告警触发次数
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:count:remove')")
+    @Log(title = "告警触发次数", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wctBids}")
+    public AjaxResult remove(@PathVariable String[] wctBids){
+        return toAjax(iotWarncountService.deleteIotWarncountByWctBids(wctBids,SecurityUtils.getTid()));
+    }
+}

+ 94 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarndataitemController.java

@@ -0,0 +1,94 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarndataitem;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarndataitemService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警要素Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/data/item")
+public class IotWarndataitemController extends BaseController{
+    @Autowired
+    private IIotWarndataitemService iotWarndataitemService;
+
+    /**
+     * 查询告警要素列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:data:item:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarndataitem iotWarndataitem){
+        
+        startPage();
+        List<IotWarndataitem> list = iotWarndataitemService.selectIotWarndataitemList(iotWarndataitem);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警要素列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:data:item:export')")
+    @Log(title = "告警要素", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarndataitem iotWarndataitem){
+        List<IotWarndataitem> list = iotWarndataitemService.selectIotWarndataitemList(iotWarndataitem);
+        ExcelUtil<IotWarndataitem> util = new ExcelUtil<IotWarndataitem>(IotWarndataitem.class);
+        util.exportExcel(response, list, "告警要素数据");
+    }
+
+    /**
+     * 获取告警要素详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:data:item:query')")
+    @GetMapping(value = "/info/{wdBid}")
+    public AjaxResult getInfo(@PathVariable("wdBid") String wdBid){
+        return success(iotWarndataitemService.selectIotWarndataitemByWdBid(wdBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警要素
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:data:item:add')")
+    @Log(title = "告警要素", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarndataitem iotWarndataitem){
+        return toAjax(iotWarndataitemService.insertIotWarndataitem(iotWarndataitem));
+    }
+
+    /**
+     * 修改告警要素
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:data:item:edit')")
+    @Log(title = "告警要素", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarndataitem iotWarndataitem){
+        return toAjax(iotWarndataitemService.updateIotWarndataitem(iotWarndataitem));
+    }
+
+    /**
+     * 删除告警要素
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:data:item:remove')")
+    @Log(title = "告警要素", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wdBids}")
+    public AjaxResult remove(@PathVariable String[] wdBids){
+        return toAjax(iotWarndataitemService.deleteIotWarndataitemByWdBids(wdBids,SecurityUtils.getTid()));
+    }
+}

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnindicatorController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnindicator;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnindicatorService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警指标,存储所有与告警相关的指标信息Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/indicator")
+public class IotWarnindicatorController extends BaseController{
+    @Autowired
+    private IIotWarnindicatorService iotWarnindicatorService;
+
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:indicator:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarnindicator iotWarnindicator){
+        iotWarnindicator.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarnindicator> list = iotWarnindicatorService.selectIotWarnindicatorList(iotWarnindicator);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警指标,存储所有与告警相关的指标信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:indicator:export')")
+    @Log(title = "告警指标,存储所有与告警相关的指标信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarnindicator iotWarnindicator){
+        iotWarnindicator.setTid(SecurityUtils.getTid());
+        List<IotWarnindicator> list = iotWarnindicatorService.selectIotWarnindicatorList(iotWarnindicator);
+        ExcelUtil<IotWarnindicator> util = new ExcelUtil<IotWarnindicator>(IotWarnindicator.class);
+        util.exportExcel(response, list, "告警指标,存储所有与告警相关的指标信息数据");
+    }
+
+    /**
+     * 获取告警指标,存储所有与告警相关的指标信息详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:indicator:query')")
+    @GetMapping(value = "/info/{wiBid}")
+    public AjaxResult getInfo(@PathVariable("wiBid") String wiBid){
+        return success(iotWarnindicatorService.selectIotWarnindicatorByWiBid(wiBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警指标,存储所有与告警相关的指标信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:indicator:add')")
+    @Log(title = "告警指标,存储所有与告警相关的指标信息", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarnindicator iotWarnindicator){
+        iotWarnindicator.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnindicatorService.insertIotWarnindicator(iotWarnindicator));
+    }
+
+    /**
+     * 修改告警指标,存储所有与告警相关的指标信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:indicator:edit')")
+    @Log(title = "告警指标,存储所有与告警相关的指标信息", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarnindicator iotWarnindicator){
+        iotWarnindicator.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnindicatorService.updateIotWarnindicator(iotWarnindicator));
+    }
+
+    /**
+     * 删除告警指标,存储所有与告警相关的指标信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:indicator:remove')")
+    @Log(title = "告警指标,存储所有与告警相关的指标信息", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wiBids}")
+    public AjaxResult remove(@PathVariable String[] wiBids){
+        return toAjax(iotWarnindicatorService.deleteIotWarnindicatorByWiBids(wiBids,SecurityUtils.getTid()));
+    }
+}

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnlogController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnlog;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnlogService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警记录Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/record")
+public class IotWarnlogController extends BaseController{
+    @Autowired
+    private IIotWarnlogService iotWarnlogService;
+
+    /**
+     * 查询告警记录列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:record:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarnlog iotWarnlog){
+        iotWarnlog.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarnlog> list = iotWarnlogService.selectIotWarnlogList(iotWarnlog);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警记录列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:record:export')")
+    @Log(title = "告警记录", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarnlog iotWarnlog){
+        iotWarnlog.setTid(SecurityUtils.getTid());
+        List<IotWarnlog> list = iotWarnlogService.selectIotWarnlogList(iotWarnlog);
+        ExcelUtil<IotWarnlog> util = new ExcelUtil<IotWarnlog>(IotWarnlog.class);
+        util.exportExcel(response, list, "告警记录数据");
+    }
+
+    /**
+     * 获取告警记录详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:record:query')")
+    @GetMapping(value = "/info/{wrBid}")
+    public AjaxResult getInfo(@PathVariable("wrBid") String wrBid){
+        return success(iotWarnlogService.selectIotWarnlogByWlBid(wrBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警记录
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:record:add')")
+    @Log(title = "告警记录", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarnlog iotWarnlog){
+        iotWarnlog.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnlogService.insertIotWarnlog(iotWarnlog));
+    }
+
+    /**
+     * 修改告警记录
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:record:edit')")
+    @Log(title = "告警记录", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarnlog iotWarnlog){
+        iotWarnlog.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnlogService.updateIotWarnlog(iotWarnlog));
+    }
+
+    /**
+     * 删除告警记录
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:record:remove')")
+    @Log(title = "告警记录", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wrBids}")
+    public AjaxResult remove(@PathVariable String[] wrBids){
+        return toAjax(iotWarnlogService.deleteIotWarnlogByWlBids(wrBids,SecurityUtils.getTid()));
+    }
+}

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnobjectController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnobject;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnobjectService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警对象Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/object")
+public class IotWarnobjectController extends BaseController{
+    @Autowired
+    private IIotWarnobjectService iotWarnobjectService;
+
+    /**
+     * 查询告警对象列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:object:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarnobject iotWarnobject){
+        iotWarnobject.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarnobject> list = iotWarnobjectService.selectIotWarnobjectList(iotWarnobject);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警对象列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:object:export')")
+    @Log(title = "告警对象", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarnobject iotWarnobject){
+        iotWarnobject.setTid(SecurityUtils.getTid());
+        List<IotWarnobject> list = iotWarnobjectService.selectIotWarnobjectList(iotWarnobject);
+        ExcelUtil<IotWarnobject> util = new ExcelUtil<IotWarnobject>(IotWarnobject.class);
+        util.exportExcel(response, list, "告警对象数据");
+    }
+
+    /**
+     * 获取告警对象详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:object:query')")
+    @GetMapping(value = "/info/{woBid}")
+    public AjaxResult getInfo(@PathVariable("woBid") String woBid){
+        return success(iotWarnobjectService.selectIotWarnobjectByWoBid(woBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警对象
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:object:add')")
+    @Log(title = "告警对象", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarnobject iotWarnobject){
+        iotWarnobject.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnobjectService.insertIotWarnobject(iotWarnobject));
+    }
+
+    /**
+     * 修改告警对象
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:object:edit')")
+    @Log(title = "告警对象", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarnobject iotWarnobject){
+        iotWarnobject.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnobjectService.updateIotWarnobject(iotWarnobject));
+    }
+
+    /**
+     * 删除告警对象
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:object:remove')")
+    @Log(title = "告警对象", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{woBids}")
+    public AjaxResult remove(@PathVariable String[] woBids){
+        return toAjax(iotWarnobjectService.deleteIotWarnobjectByWoBids(woBids,SecurityUtils.getTid()));
+    }
+}

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnpolicyController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnpolicy;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnpolicyService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警通知策略,存储所有与告警相关的通知策略信息Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/policy")
+public class IotWarnpolicyController extends BaseController{
+    @Autowired
+    private IIotWarnpolicyService iotWarnpolicyService;
+
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:policy:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarnpolicy iotWarnpolicy){
+        iotWarnpolicy.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarnpolicy> list = iotWarnpolicyService.selectIotWarnpolicyList(iotWarnpolicy);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警通知策略,存储所有与告警相关的通知策略信息列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:policy:export')")
+    @Log(title = "告警通知策略,存储所有与告警相关的通知策略信息", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarnpolicy iotWarnpolicy){
+        iotWarnpolicy.setTid(SecurityUtils.getTid());
+        List<IotWarnpolicy> list = iotWarnpolicyService.selectIotWarnpolicyList(iotWarnpolicy);
+        ExcelUtil<IotWarnpolicy> util = new ExcelUtil<IotWarnpolicy>(IotWarnpolicy.class);
+        util.exportExcel(response, list, "告警通知策略,存储所有与告警相关的通知策略信息数据");
+    }
+
+    /**
+     * 获取告警通知策略,存储所有与告警相关的通知策略信息详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:policy:query')")
+    @GetMapping(value = "/info/{wpBid}")
+    public AjaxResult getInfo(@PathVariable("wpBid") String wpBid){
+        return success(iotWarnpolicyService.selectIotWarnpolicyByWpBid(wpBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:policy:add')")
+    @Log(title = "告警通知策略,存储所有与告警相关的通知策略信息", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarnpolicy iotWarnpolicy){
+        iotWarnpolicy.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnpolicyService.insertIotWarnpolicy(iotWarnpolicy));
+    }
+
+    /**
+     * 修改告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:policy:edit')")
+    @Log(title = "告警通知策略,存储所有与告警相关的通知策略信息", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarnpolicy iotWarnpolicy){
+        iotWarnpolicy.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnpolicyService.updateIotWarnpolicy(iotWarnpolicy));
+    }
+
+    /**
+     * 删除告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:policy:remove')")
+    @Log(title = "告警通知策略,存储所有与告警相关的通知策略信息", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wpBids}")
+    public AjaxResult remove(@PathVariable String[] wpBids){
+        return toAjax(iotWarnpolicyService.deleteIotWarnpolicyByWpBids(wpBids,SecurityUtils.getTid()));
+    }
+}

+ 97 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/controller/IotWarnreceiverController.java

@@ -0,0 +1,97 @@
+package com.yunfeiyun.agmp.iotm.web.controller;
+
+import com.yunfeiyun.agmp.common.annotation.Log;
+import com.yunfeiyun.agmp.common.core.controller.BaseController;
+import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
+import com.yunfeiyun.agmp.common.enums.BusinessType;
+import com.yunfeiyun.agmp.common.utils.SecurityUtils;
+import com.yunfeiyun.agmp.common.utils.poi.ExcelUtil;
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnreceiver;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnreceiverService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+
+/**
+ * 告警接收者Controller
+ *
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@RestController
+@RequestMapping("/iot/warn/receiver")
+public class IotWarnreceiverController extends BaseController{
+    @Autowired
+    private IIotWarnreceiverService iotWarnreceiverService;
+
+    /**
+     * 查询告警接收者列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:receiver:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(IotWarnreceiver iotWarnreceiver){
+        iotWarnreceiver.setTid(SecurityUtils.getTid());
+        startPage();
+        List<IotWarnreceiver> list = iotWarnreceiverService.selectIotWarnreceiverList(iotWarnreceiver);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出告警接收者列表
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:receiver:export')")
+    @Log(title = "告警接收者", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, IotWarnreceiver iotWarnreceiver){
+        iotWarnreceiver.setTid(SecurityUtils.getTid());
+        List<IotWarnreceiver> list = iotWarnreceiverService.selectIotWarnreceiverList(iotWarnreceiver);
+        ExcelUtil<IotWarnreceiver> util = new ExcelUtil<IotWarnreceiver>(IotWarnreceiver.class);
+        util.exportExcel(response, list, "告警接收者数据");
+    }
+
+    /**
+     * 获取告警接收者详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:receiver:query')")
+    @GetMapping(value = "/info/{wrBid}")
+    public AjaxResult getInfo(@PathVariable("wrBid") String wrBid){
+        return success(iotWarnreceiverService.selectIotWarnreceiverByWrBid(wrBid,SecurityUtils.getTid()));
+    }
+
+    /**
+     * 新增告警接收者
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:receiver:add')")
+    @Log(title = "告警接收者", businessType = BusinessType.INSERT)
+    @PostMapping("/add")
+    public AjaxResult add(@Valid @RequestBody IotWarnreceiver iotWarnreceiver){
+        iotWarnreceiver.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnreceiverService.insertIotWarnreceiver(iotWarnreceiver));
+    }
+
+    /**
+     * 修改告警接收者
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:receiver:edit')")
+    @Log(title = "告警接收者", businessType = BusinessType.UPDATE)
+    @PutMapping("/edit")
+    public AjaxResult edit(@Valid @RequestBody IotWarnreceiver iotWarnreceiver){
+        iotWarnreceiver.setTid(SecurityUtils.getTid());
+        return toAjax(iotWarnreceiverService.updateIotWarnreceiver(iotWarnreceiver));
+    }
+
+    /**
+     * 删除告警接收者
+     */
+    @PreAuthorize("@ss.hasPermi('iot:warn:receiver:remove')")
+    @Log(title = "告警接收者", businessType = BusinessType.DELETE)
+	@DeleteMapping("/delete/{wrBids}")
+    public AjaxResult remove(@PathVariable String[] wrBids){
+        return toAjax(iotWarnreceiverService.deleteIotWarnreceiverByWrBids(wrBids,SecurityUtils.getTid()));
+    }
+}

+ 63 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnconfigMapper.java

@@ -0,0 +1,63 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnconfig;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+
+/**
+ * 告警配置Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarnconfigMapper {
+    /**
+     * 查询告警配置
+     * 
+     * @param wcBid 告警配置主键
+     * @return 告警配置
+     */
+    public IotWarnconfig selectIotWarnconfigByWcBid(@Param("wcBid") String wcBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警配置列表
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 告警配置集合
+     */
+    public List<IotWarnconfig> selectIotWarnconfigList(IotWarnconfig iotWarnconfig);
+
+    /**
+     * 新增告警配置
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 结果
+     */
+    public int insertIotWarnconfig(IotWarnconfig iotWarnconfig);
+
+    /**
+     * 修改告警配置
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 结果
+     */
+    public int updateIotWarnconfig(IotWarnconfig iotWarnconfig);
+
+    /**
+     * 删除告警配置
+     * 
+     * @param wcBid 告警配置主键
+     * @return 结果
+     */
+    public int deleteIotWarnconfigByWcBid(@Param("wcBid") String wcBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警配置
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnconfigWcBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarncountMapper.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarncount;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 告警触发次数Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarncountMapper {
+    /**
+     * 查询告警触发次数
+     * 
+     * @param wctBid 告警触发次数主键
+     * @return 告警触发次数
+     */
+    public IotWarncount selectIotWarncountByWctBid(@Param("wctBid") String wctBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警触发次数列表
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 告警触发次数集合
+     */
+    public List<IotWarncount> selectIotWarncountList(IotWarncount iotWarncount);
+
+    /**
+     * 新增告警触发次数
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 结果
+     */
+    public int insertIotWarncount(IotWarncount iotWarncount);
+
+    /**
+     * 修改告警触发次数
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 结果
+     */
+    public int updateIotWarncount(IotWarncount iotWarncount);
+
+    /**
+     * 删除告警触发次数
+     * 
+     * @param wctBid 告警触发次数主键
+     * @return 结果
+     */
+    public int deleteIotWarncountByWctBid(@Param("wctBid") String wctBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警触发次数
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarncountByWctBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 61 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarndataitemMapper.java

@@ -0,0 +1,61 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarndataitem;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+/**
+ * 告警要素Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarndataitemMapper {
+    /**
+     * 查询告警要素
+     * 
+     * @param wdBid 告警要素主键
+     * @return 告警要素
+     */
+    public IotWarndataitem selectIotWarndataitemByWdBid(@Param("wdBid") String wdBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警要素列表
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 告警要素集合
+     */
+    public List<IotWarndataitem> selectIotWarndataitemList(IotWarndataitem iotWarndataitem);
+
+    /**
+     * 新增告警要素
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 结果
+     */
+    public int insertIotWarndataitem(IotWarndataitem iotWarndataitem);
+
+    /**
+     * 修改告警要素
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 结果
+     */
+    public int updateIotWarndataitem(IotWarndataitem iotWarndataitem);
+
+    /**
+     * 删除告警要素
+     * 
+     * @param wdBid 告警要素主键
+     * @return 结果
+     */
+    public int deleteIotWarndataitemByWdBid(@Param("wdBid") String wdBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警要素
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarndataitemByWdBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 63 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnindicatorMapper.java

@@ -0,0 +1,63 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnindicator;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+
+/**
+ * 告警指标,存储所有与告警相关的指标信息Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarnindicatorMapper {
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param wiBid 告警指标,存储所有与告警相关的指标信息主键
+     * @return 告警指标,存储所有与告警相关的指标信息
+     */
+    public IotWarnindicator selectIotWarnindicatorByWiBid(@Param("wiBid") String wiBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息列表
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 告警指标,存储所有与告警相关的指标信息集合
+     */
+    public List<IotWarnindicator> selectIotWarnindicatorList(IotWarnindicator iotWarnindicator);
+
+    /**
+     * 新增告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 结果
+     */
+    public int insertIotWarnindicator(IotWarnindicator iotWarnindicator);
+
+    /**
+     * 修改告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 结果
+     */
+    public int updateIotWarnindicator(IotWarnindicator iotWarnindicator);
+
+    /**
+     * 删除告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param wiBid 告警指标,存储所有与告警相关的指标信息主键
+     * @return 结果
+     */
+    public int deleteIotWarnindicatorByWiBid(@Param("wiBid") String wiBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnindicatorByWiBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnlogMapper.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnlog;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 告警记录Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarnlogMapper {
+    /**
+     * 查询告警记录
+     * 
+     * @param id 告警记录主键
+     * @return 告警记录
+     */
+    public IotWarnlog selectIotWarnlogById(@Param("id") String id, @Param("tid") String tid);
+
+    /**
+     * 查询告警记录列表
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 告警记录集合
+     */
+    public List<IotWarnlog> selectIotWarnlogList(IotWarnlog iotWarnlog);
+
+    /**
+     * 新增告警记录
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 结果
+     */
+    public int insertIotWarnlog(IotWarnlog iotWarnlog);
+
+    /**
+     * 修改告警记录
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 结果
+     */
+    public int updateIotWarnlog(IotWarnlog iotWarnlog);
+
+    /**
+     * 删除告警记录
+     * 
+     * @param id 告警记录主键
+     * @return 结果
+     */
+    public int deleteIotWarnlogByWlBid(@Param("id") String id, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警记录
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnlogByWlBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 63 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnobjectMapper.java

@@ -0,0 +1,63 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnobject;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+
+/**
+ * 告警对象Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarnobjectMapper {
+    /**
+     * 查询告警对象
+     * 
+     * @param woBid 告警对象主键
+     * @return 告警对象
+     */
+    public IotWarnobject selectIotWarnobjectByWoBid(@Param("woBid") String woBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警对象列表
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 告警对象集合
+     */
+    public List<IotWarnobject> selectIotWarnobjectList(IotWarnobject iotWarnobject);
+
+    /**
+     * 新增告警对象
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 结果
+     */
+    public int insertIotWarnobject(IotWarnobject iotWarnobject);
+
+    /**
+     * 修改告警对象
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 结果
+     */
+    public int updateIotWarnobject(IotWarnobject iotWarnobject);
+
+    /**
+     * 删除告警对象
+     * 
+     * @param woBid 告警对象主键
+     * @return 结果
+     */
+    public int deleteIotWarnobjectByWoBid(@Param("woBid") String woBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警对象
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnobjectByWoBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 63 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnpolicyMapper.java

@@ -0,0 +1,63 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnpolicy;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+
+/**
+ * 告警通知策略,存储所有与告警相关的通知策略信息Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarnpolicyMapper {
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param wpBid 告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    public IotWarnpolicy selectIotWarnpolicyById(@Param("wpBid") String wpBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息列表
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 告警通知策略,存储所有与告警相关的通知策略信息集合
+     */
+    public List<IotWarnpolicy> selectIotWarnpolicyList(IotWarnpolicy iotWarnpolicy);
+
+    /**
+     * 新增告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 结果
+     */
+    public int insertIotWarnpolicy(IotWarnpolicy iotWarnpolicy);
+
+    /**
+     * 修改告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 结果
+     */
+    public int updateIotWarnpolicy(IotWarnpolicy iotWarnpolicy);
+
+    /**
+     * 删除告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param wpBid 告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 结果
+     */
+    public int deleteIotWarnpolicyByWpBid(@Param("wpBid") String wpBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnpolicyByWpBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 63 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/mapper/IotWarnreceiverMapper.java

@@ -0,0 +1,63 @@
+package com.yunfeiyun.agmp.iotm.web.mapper;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnreceiver;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+
+/**
+ * 告警接收者Mapper接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IotWarnreceiverMapper {
+    /**
+     * 查询告警接收者
+     * 
+     * @param wrBid 告警接收者主键
+     * @return 告警接收者
+     */
+    public IotWarnreceiver selectIotWarnreceiverByWrBid(@Param("wrBid") String wrBid, @Param("tid") String tid);
+
+    /**
+     * 查询告警接收者列表
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 告警接收者集合
+     */
+    public List<IotWarnreceiver> selectIotWarnreceiverList(IotWarnreceiver iotWarnreceiver);
+
+    /**
+     * 新增告警接收者
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 结果
+     */
+    public int insertIotWarnreceiver(IotWarnreceiver iotWarnreceiver);
+
+    /**
+     * 修改告警接收者
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 结果
+     */
+    public int updateIotWarnreceiver(IotWarnreceiver iotWarnreceiver);
+
+    /**
+     * 删除告警接收者
+     * 
+     * @param wrBid 告警接收者主键
+     * @return 结果
+     */
+    public int deleteIotWarnreceiverByWrBid(@Param("wrBid") String wrBid, @Param("tid") String tid);
+
+    /**
+     * 批量删除告警接收者
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnreceiverByWrBids(@Param("array") String[] ids, @Param("tid") String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnconfigService.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnconfig;
+
+import java.util.List;
+
+
+/**
+ * 告警配置Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarnconfigService {
+    /**
+     * 查询告警配置
+     * 
+     * @param wcBid 告警配置主键
+     * @return 告警配置
+     */
+    public IotWarnconfig selectIotWarnconfigByWcBid(String wcBid, String tid );
+
+    /**
+     * 查询告警配置列表
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 告警配置集合
+     */
+    public List<IotWarnconfig> selectIotWarnconfigList(IotWarnconfig iotWarnconfig);
+
+    /**
+     * 新增告警配置
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 结果
+     */
+    public int insertIotWarnconfig(IotWarnconfig iotWarnconfig);
+
+    /**
+     * 修改告警配置
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 结果
+     */
+    public int updateIotWarnconfig(IotWarnconfig iotWarnconfig);
+
+    /**
+     * 批量删除告警配置
+     * 
+     * @param wcBids 需要删除的告警配置主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnconfigWcBids(String[] wcBids, String tid);
+
+    /**
+     * 删除告警配置信息
+     * 
+     * @param wcBid 告警配置主键
+     * @return 结果
+     */
+    public int deleteIotWarnconfigByWcBid(String wcBid, String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarncountService.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarncount;
+
+import java.util.List;
+
+
+/**
+ * 告警触发次数Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarncountService {
+    /**
+     * 查询告警触发次数
+     * 
+     * @param wctBid 告警触发次数主键
+     * @return 告警触发次数
+     */
+    public IotWarncount selectIotWarncountByWctBid(String wctBid, String tid );
+
+    /**
+     * 查询告警触发次数列表
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 告警触发次数集合
+     */
+    public List<IotWarncount> selectIotWarncountList(IotWarncount iotWarncount);
+
+    /**
+     * 新增告警触发次数
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 结果
+     */
+    public int insertIotWarncount(IotWarncount iotWarncount);
+
+    /**
+     * 修改告警触发次数
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 结果
+     */
+    public int updateIotWarncount(IotWarncount iotWarncount);
+
+    /**
+     * 批量删除告警触发次数
+     * 
+     * @param wctBids 需要删除的告警触发次数主键集合
+     * @return 结果
+     */
+    public int deleteIotWarncountByWctBids(String[] wctBids, String tid);
+
+    /**
+     * 删除告警触发次数信息
+     * 
+     * @param wctBid 告警触发次数主键
+     * @return 结果
+     */
+    public int deleteIotWarncountByWctBid(String wctBid, String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarndataitemService.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarndataitem;
+
+import java.util.List;
+
+
+/**
+ * 告警要素Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarndataitemService {
+    /**
+     * 查询告警要素
+     * 
+     * @param wdBid 告警要素主键
+     * @return 告警要素
+     */
+    public IotWarndataitem selectIotWarndataitemByWdBid(String wdBid, String tid );
+
+    /**
+     * 查询告警要素列表
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 告警要素集合
+     */
+    public List<IotWarndataitem> selectIotWarndataitemList(IotWarndataitem iotWarndataitem);
+
+    /**
+     * 新增告警要素
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 结果
+     */
+    public int insertIotWarndataitem(IotWarndataitem iotWarndataitem);
+
+    /**
+     * 修改告警要素
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 结果
+     */
+    public int updateIotWarndataitem(IotWarndataitem iotWarndataitem);
+
+    /**
+     * 批量删除告警要素
+     * 
+     * @param wdBids 需要删除的告警要素主键集合
+     * @return 结果
+     */
+    public int deleteIotWarndataitemByWdBids(String[] wdBids, String tid);
+
+    /**
+     * 删除告警要素信息
+     * 
+     * @param wdBid 告警要素主键
+     * @return 结果
+     */
+    public int deleteIotWarndataitemByWdBid(String wdBid, String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnindicatorService.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnindicator;
+
+import java.util.List;
+
+
+/**
+ * 告警指标,存储所有与告警相关的指标信息Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarnindicatorService {
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param wiBid 告警指标,存储所有与告警相关的指标信息主键
+     * @return 告警指标,存储所有与告警相关的指标信息
+     */
+    public IotWarnindicator selectIotWarnindicatorByWiBid(String wiBid, String tid );
+
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息列表
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 告警指标,存储所有与告警相关的指标信息集合
+     */
+    public List<IotWarnindicator> selectIotWarnindicatorList(IotWarnindicator iotWarnindicator);
+
+    /**
+     * 新增告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 结果
+     */
+    public int insertIotWarnindicator(IotWarnindicator iotWarnindicator);
+
+    /**
+     * 修改告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 结果
+     */
+    public int updateIotWarnindicator(IotWarnindicator iotWarnindicator);
+
+    /**
+     * 批量删除告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param wiBids 需要删除的告警指标,存储所有与告警相关的指标信息主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnindicatorByWiBids(String[] wiBids, String tid);
+
+    /**
+     * 删除告警指标,存储所有与告警相关的指标信息信息
+     * 
+     * @param wiBid 告警指标,存储所有与告警相关的指标信息主键
+     * @return 结果
+     */
+    public int deleteIotWarnindicatorByWiBid(String wiBid, String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnlogService.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnlog;
+
+import java.util.List;
+
+
+/**
+ * 告警记录Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarnlogService {
+    /**
+     * 查询告警记录
+     * 
+     * @param wlBid 告警记录主键
+     * @return 告警记录
+     */
+    public IotWarnlog selectIotWarnlogByWlBid(String wlBid, String tid );
+
+    /**
+     * 查询告警记录列表
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 告警记录集合
+     */
+    public List<IotWarnlog> selectIotWarnlogList(IotWarnlog iotWarnlog);
+
+    /**
+     * 新增告警记录
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 结果
+     */
+    public int insertIotWarnlog(IotWarnlog iotWarnlog);
+
+    /**
+     * 修改告警记录
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 结果
+     */
+    public int updateIotWarnlog(IotWarnlog iotWarnlog);
+
+    /**
+     * 批量删除告警记录
+     * 
+     * @param wlBids 需要删除的告警记录主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnlogByWlBids(String[] wlBids, String tid);
+
+    /**
+     * 删除告警记录信息
+     * 
+     * @param wlBid 告警记录主键
+     * @return 结果
+     */
+    public int deleteIotWarnlogByWlBids(String wlBid, String tid);
+}

+ 62 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnobjectService.java

@@ -0,0 +1,62 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnobject;
+
+import java.util.List;
+
+
+/**
+ * 告警对象Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarnobjectService {
+    /**
+     * 查询告警对象
+     * 
+     * @param woBid 告警对象主键
+     * @return 告警对象
+     */
+    public IotWarnobject selectIotWarnobjectByWoBid(String woBid, String tid );
+
+    /**
+     * 查询告警对象列表
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 告警对象集合
+     */
+    public List<IotWarnobject> selectIotWarnobjectList(IotWarnobject iotWarnobject);
+
+    /**
+     * 新增告警对象
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 结果
+     */
+    public int insertIotWarnobject(IotWarnobject iotWarnobject);
+
+    /**
+     * 修改告警对象
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 结果
+     */
+    public int updateIotWarnobject(IotWarnobject iotWarnobject);
+
+    /**
+     * 批量删除告警对象
+     * 
+     * @param woBids 需要删除的告警对象主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnobjectByWoBids(String[] woBids, String tid);
+
+    /**
+     * 删除告警对象信息
+     * 
+     * @param woBid 告警对象主键
+     * @return 结果
+     */
+    public int deleteIotWarnobjectByWoBid(String woBid, String tid);
+}

+ 61 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnpolicyService.java

@@ -0,0 +1,61 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnpolicy;
+
+import java.util.List;
+
+/**
+ * 告警通知策略,存储所有与告警相关的通知策略信息Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarnpolicyService {
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param wpBid 告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    public IotWarnpolicy selectIotWarnpolicyByWpBid(String wpBid, String tid );
+
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息列表
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 告警通知策略,存储所有与告警相关的通知策略信息集合
+     */
+    public List<IotWarnpolicy> selectIotWarnpolicyList(IotWarnpolicy iotWarnpolicy);
+
+    /**
+     * 新增告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 结果
+     */
+    public int insertIotWarnpolicy(IotWarnpolicy iotWarnpolicy);
+
+    /**
+     * 修改告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 结果
+     */
+    public int updateIotWarnpolicy(IotWarnpolicy iotWarnpolicy);
+
+    /**
+     * 批量删除告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param wpBids 需要删除的告警通知策略,存储所有与告警相关的通知策略信息主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnpolicyByWpBids(String[] wpBids, String tid);
+
+    /**
+     * 删除告警通知策略,存储所有与告警相关的通知策略信息信息
+     * 
+     * @param wpBid 告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 结果
+     */
+    public int deleteIotWarnpolicyByWpBid(String wpBid, String tid);
+}

+ 61 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/IIotWarnreceiverService.java

@@ -0,0 +1,61 @@
+package com.yunfeiyun.agmp.iotm.web.service;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnreceiver;
+
+import java.util.List;
+
+/**
+ * 告警接收者Service接口
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+public interface IIotWarnreceiverService {
+    /**
+     * 查询告警接收者
+     * 
+     * @param wrBid 告警接收者主键
+     * @return 告警接收者
+     */
+    public IotWarnreceiver selectIotWarnreceiverByWrBid(String wrBid, String tid );
+
+    /**
+     * 查询告警接收者列表
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 告警接收者集合
+     */
+    public List<IotWarnreceiver> selectIotWarnreceiverList(IotWarnreceiver iotWarnreceiver);
+
+    /**
+     * 新增告警接收者
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 结果
+     */
+    public int insertIotWarnreceiver(IotWarnreceiver iotWarnreceiver);
+
+    /**
+     * 修改告警接收者
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 结果
+     */
+    public int updateIotWarnreceiver(IotWarnreceiver iotWarnreceiver);
+
+    /**
+     * 批量删除告警接收者
+     * 
+     * @param wrBids 需要删除的告警接收者主键集合
+     * @return 结果
+     */
+    public int deleteIotWarnreceiverByWrBids(String[] wrBids, String tid);
+
+    /**
+     * 删除告警接收者信息
+     * 
+     * @param wrBid 告警接收者主键
+     * @return 结果
+     */
+    public int deleteIotWarnreceiverByWrBid(String wrBid, String tid);
+}

+ 87 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnconfigServiceImpl.java

@@ -0,0 +1,87 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnconfig;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarnconfigMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnconfigService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 告警配置Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarnconfigServiceImpl implements IIotWarnconfigService {
+    @Autowired
+    private IotWarnconfigMapper iotWarnconfigMapper;
+
+    /**
+     * 查询告警配置
+     * 
+     * @param wcBid 告警配置主键
+     * @return 告警配置
+     */
+    @Override
+    public IotWarnconfig selectIotWarnconfigByWcBid(String wcBid, String tid){
+        return iotWarnconfigMapper.selectIotWarnconfigByWcBid(wcBid, tid);
+    }
+
+    /**
+     * 查询告警配置列表
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 告警配置
+     */
+    @Override
+    public List<IotWarnconfig> selectIotWarnconfigList(IotWarnconfig iotWarnconfig){
+        return iotWarnconfigMapper.selectIotWarnconfigList(iotWarnconfig);
+    }
+
+    /**
+     * 新增告警配置
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarnconfig(IotWarnconfig iotWarnconfig){
+        return iotWarnconfigMapper.insertIotWarnconfig(iotWarnconfig);
+    }
+
+    /**
+     * 修改告警配置
+     * 
+     * @param iotWarnconfig 告警配置
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarnconfig(IotWarnconfig iotWarnconfig){
+        return iotWarnconfigMapper.updateIotWarnconfig(iotWarnconfig);
+    }
+
+    /**
+     * 批量删除告警配置
+     * 
+     * @param wcBids 需要删除的告警配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnconfigWcBids(String[] wcBids, String tid){
+        return iotWarnconfigMapper.deleteIotWarnconfigWcBids(wcBids, tid);
+    }
+
+    /**
+     * 删除告警配置信息
+     * 
+     * @param wcBid 告警配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnconfigByWcBid(String wcBid, String tid){
+        return iotWarnconfigMapper.deleteIotWarnconfigByWcBid(wcBid, tid);
+    }
+}

+ 88 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarncountServiceImpl.java

@@ -0,0 +1,88 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarncount;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarncountMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarncountService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * 告警触发次数Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarncountServiceImpl implements IIotWarncountService {
+    @Autowired
+    private IotWarncountMapper iotWarncountMapper;
+
+    /**
+     * 查询告警触发次数
+     * 
+     * @param wctBid 告警触发次数主键
+     * @return 告警触发次数
+     */
+    @Override
+    public IotWarncount selectIotWarncountByWctBid(String wctBid, String tid){
+        return iotWarncountMapper.selectIotWarncountByWctBid(wctBid, tid);
+    }
+
+    /**
+     * 查询告警触发次数列表
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 告警触发次数
+     */
+    @Override
+    public List<IotWarncount> selectIotWarncountList(IotWarncount iotWarncount){
+        return iotWarncountMapper.selectIotWarncountList(iotWarncount);
+    }
+
+    /**
+     * 新增告警触发次数
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarncount(IotWarncount iotWarncount){
+        return iotWarncountMapper.insertIotWarncount(iotWarncount);
+    }
+
+    /**
+     * 修改告警触发次数
+     * 
+     * @param iotWarncount 告警触发次数
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarncount(IotWarncount iotWarncount){
+        return iotWarncountMapper.updateIotWarncount(iotWarncount);
+    }
+
+    /**
+     * 批量删除告警触发次数
+     * 
+     * @param wctBids 需要删除的告警触发次数主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarncountByWctBids(String[] wctBids, String tid){
+        return iotWarncountMapper.deleteIotWarncountByWctBids(wctBids, tid);
+    }
+
+    /**
+     * 删除告警触发次数信息
+     * 
+     * @param wctBid 告警触发次数主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarncountByWctBid(String wctBid, String tid){
+        return iotWarncountMapper.deleteIotWarncountByWctBid(wctBid, tid);
+    }
+}

+ 88 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarndataitemServiceImpl.java

@@ -0,0 +1,88 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarndataitem;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarndataitemMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarndataitemService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * 告警要素Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarndataitemServiceImpl implements IIotWarndataitemService {
+    @Autowired
+    private IotWarndataitemMapper iotWarndataitemMapper;
+
+    /**
+     * 查询告警要素
+     * 
+     * @param wdBid 告警要素主键
+     * @return 告警要素
+     */
+    @Override
+    public IotWarndataitem selectIotWarndataitemByWdBid(String wdBid, String tid){
+        return iotWarndataitemMapper.selectIotWarndataitemByWdBid(wdBid, tid);
+    }
+
+    /**
+     * 查询告警要素列表
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 告警要素
+     */
+    @Override
+    public List<IotWarndataitem> selectIotWarndataitemList(IotWarndataitem iotWarndataitem){
+        return iotWarndataitemMapper.selectIotWarndataitemList(iotWarndataitem);
+    }
+
+    /**
+     * 新增告警要素
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarndataitem(IotWarndataitem iotWarndataitem){
+        return iotWarndataitemMapper.insertIotWarndataitem(iotWarndataitem);
+    }
+
+    /**
+     * 修改告警要素
+     * 
+     * @param iotWarndataitem 告警要素
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarndataitem(IotWarndataitem iotWarndataitem){
+        return iotWarndataitemMapper.updateIotWarndataitem(iotWarndataitem);
+    }
+
+    /**
+     * 批量删除告警要素
+     * 
+     * @param wdBids 需要删除的告警要素主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarndataitemByWdBids(String[] wdBids, String tid){
+        return iotWarndataitemMapper.deleteIotWarndataitemByWdBids(wdBids, tid);
+    }
+
+    /**
+     * 删除告警要素信息
+     * 
+     * @param wdBid 告警要素主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarndataitemByWdBid(String wdBid, String tid){
+        return iotWarndataitemMapper.deleteIotWarndataitemByWdBid(wdBid, tid);
+    }
+}

+ 88 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnindicatorServiceImpl.java

@@ -0,0 +1,88 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnindicator;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarnindicatorMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnindicatorService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * 告警指标,存储所有与告警相关的指标信息Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarnindicatorServiceImpl implements IIotWarnindicatorService {
+    @Autowired
+    private IotWarnindicatorMapper iotWarnindicatorMapper;
+
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param wiBid 告警指标,存储所有与告警相关的指标信息主键
+     * @return 告警指标,存储所有与告警相关的指标信息
+     */
+    @Override
+    public IotWarnindicator selectIotWarnindicatorByWiBid(String wiBid, String tid){
+        return iotWarnindicatorMapper.selectIotWarnindicatorByWiBid(wiBid, tid);
+    }
+
+    /**
+     * 查询告警指标,存储所有与告警相关的指标信息列表
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 告警指标,存储所有与告警相关的指标信息
+     */
+    @Override
+    public List<IotWarnindicator> selectIotWarnindicatorList(IotWarnindicator iotWarnindicator){
+        return iotWarnindicatorMapper.selectIotWarnindicatorList(iotWarnindicator);
+    }
+
+    /**
+     * 新增告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarnindicator(IotWarnindicator iotWarnindicator){
+        return iotWarnindicatorMapper.insertIotWarnindicator(iotWarnindicator);
+    }
+
+    /**
+     * 修改告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param iotWarnindicator 告警指标,存储所有与告警相关的指标信息
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarnindicator(IotWarnindicator iotWarnindicator){
+        return iotWarnindicatorMapper.updateIotWarnindicator(iotWarnindicator);
+    }
+
+    /**
+     * 批量删除告警指标,存储所有与告警相关的指标信息
+     * 
+     * @param wiBids 需要删除的告警指标,存储所有与告警相关的指标信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnindicatorByWiBids(String[] wiBids, String tid){
+        return iotWarnindicatorMapper.deleteIotWarnindicatorByWiBids(wiBids, tid);
+    }
+
+    /**
+     * 删除告警指标,存储所有与告警相关的指标信息信息
+     * 
+     * @param wiBid 告警指标,存储所有与告警相关的指标信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnindicatorByWiBid(String wiBid, String tid){
+        return iotWarnindicatorMapper.deleteIotWarnindicatorByWiBid(wiBid, tid);
+    }
+}

+ 88 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnlogServiceImpl.java

@@ -0,0 +1,88 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnlog;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarnlogMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnlogService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * 告警记录Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarnlogServiceImpl implements IIotWarnlogService {
+    @Autowired
+    private IotWarnlogMapper iotWarnlogMapper;
+
+    /**
+     * 查询告警记录
+     * 
+     * @param wlBid 告警记录主键
+     * @return 告警记录
+     */
+    @Override
+    public IotWarnlog selectIotWarnlogByWlBid(String wlBid, String tid){
+        return iotWarnlogMapper.selectIotWarnlogById(wlBid, tid);
+    }
+
+    /**
+     * 查询告警记录列表
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 告警记录
+     */
+    @Override
+    public List<IotWarnlog> selectIotWarnlogList(IotWarnlog iotWarnlog){
+        return iotWarnlogMapper.selectIotWarnlogList(iotWarnlog);
+    }
+
+    /**
+     * 新增告警记录
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarnlog(IotWarnlog iotWarnlog){
+        return iotWarnlogMapper.insertIotWarnlog(iotWarnlog);
+    }
+
+    /**
+     * 修改告警记录
+     * 
+     * @param iotWarnlog 告警记录
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarnlog(IotWarnlog iotWarnlog){
+        return iotWarnlogMapper.updateIotWarnlog(iotWarnlog);
+    }
+
+    /**
+     * 批量删除告警记录
+     * 
+     * @param wlBids 需要删除的告警记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnlogByWlBids(String[] wlBids, String tid){
+        return iotWarnlogMapper.deleteIotWarnlogByWlBids(wlBids, tid);
+    }
+
+    /**
+     * 删除告警记录信息
+     * 
+     * @param wlBid 告警记录主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnlogByWlBids(String wlBid, String tid){
+        return iotWarnlogMapper.deleteIotWarnlogByWlBid(wlBid, tid);
+    }
+}

+ 87 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnobjectServiceImpl.java

@@ -0,0 +1,87 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnobject;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarnobjectMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnobjectService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 告警对象Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarnobjectServiceImpl implements IIotWarnobjectService {
+    @Autowired
+    private IotWarnobjectMapper iotWarnobjectMapper;
+
+    /**
+     * 查询告警对象
+     * 
+     * @param woBid 告警对象主键
+     * @return 告警对象
+     */
+    @Override
+    public IotWarnobject selectIotWarnobjectByWoBid(String woBid, String tid){
+        return iotWarnobjectMapper.selectIotWarnobjectByWoBid(woBid, tid);
+    }
+
+    /**
+     * 查询告警对象列表
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 告警对象
+     */
+    @Override
+    public List<IotWarnobject> selectIotWarnobjectList(IotWarnobject iotWarnobject){
+        return iotWarnobjectMapper.selectIotWarnobjectList(iotWarnobject);
+    }
+
+    /**
+     * 新增告警对象
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarnobject(IotWarnobject iotWarnobject){
+        return iotWarnobjectMapper.insertIotWarnobject(iotWarnobject);
+    }
+
+    /**
+     * 修改告警对象
+     * 
+     * @param iotWarnobject 告警对象
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarnobject(IotWarnobject iotWarnobject){
+        return iotWarnobjectMapper.updateIotWarnobject(iotWarnobject);
+    }
+
+    /**
+     * 批量删除告警对象
+     * 
+     * @param woBids 需要删除的告警对象主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnobjectByWoBids(String[] woBids, String tid){
+        return iotWarnobjectMapper.deleteIotWarnobjectByWoBids(woBids, tid);
+    }
+
+    /**
+     * 删除告警对象信息
+     * 
+     * @param woBid 告警对象主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnobjectByWoBid(String woBid, String tid){
+        return iotWarnobjectMapper.deleteIotWarnobjectByWoBid(woBid, tid);
+    }
+}

+ 88 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnpolicyServiceImpl.java

@@ -0,0 +1,88 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnpolicy;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarnpolicyMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnpolicyService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * 告警通知策略,存储所有与告警相关的通知策略信息Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarnpolicyServiceImpl implements IIotWarnpolicyService {
+    @Autowired
+    private IotWarnpolicyMapper iotWarnpolicyMapper;
+
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param wpBid 告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    @Override
+    public IotWarnpolicy selectIotWarnpolicyByWpBid(String wpBid, String tid){
+        return iotWarnpolicyMapper.selectIotWarnpolicyById(wpBid, tid);
+    }
+
+    /**
+     * 查询告警通知策略,存储所有与告警相关的通知策略信息列表
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 告警通知策略,存储所有与告警相关的通知策略信息
+     */
+    @Override
+    public List<IotWarnpolicy> selectIotWarnpolicyList(IotWarnpolicy iotWarnpolicy){
+        return iotWarnpolicyMapper.selectIotWarnpolicyList(iotWarnpolicy);
+    }
+
+    /**
+     * 新增告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarnpolicy(IotWarnpolicy iotWarnpolicy){
+        return iotWarnpolicyMapper.insertIotWarnpolicy(iotWarnpolicy);
+    }
+
+    /**
+     * 修改告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param iotWarnpolicy 告警通知策略,存储所有与告警相关的通知策略信息
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarnpolicy(IotWarnpolicy iotWarnpolicy){
+        return iotWarnpolicyMapper.updateIotWarnpolicy(iotWarnpolicy);
+    }
+
+    /**
+     * 批量删除告警通知策略,存储所有与告警相关的通知策略信息
+     * 
+     * @param wpBids 需要删除的告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnpolicyByWpBids(String[] wpBids, String tid){
+        return iotWarnpolicyMapper.deleteIotWarnpolicyByWpBids(wpBids, tid);
+    }
+
+    /**
+     * 删除告警通知策略,存储所有与告警相关的通知策略信息信息
+     * 
+     * @param wpBid 告警通知策略,存储所有与告警相关的通知策略信息主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnpolicyByWpBid(String wpBid, String tid){
+        return iotWarnpolicyMapper.deleteIotWarnpolicyByWpBid(wpBid, tid);
+    }
+}

+ 88 - 0
src/main/java/com/yunfeiyun/agmp/iotm/web/service/impl/IotWarnreceiverServiceImpl.java

@@ -0,0 +1,88 @@
+package com.yunfeiyun.agmp.iotm.web.service.impl;
+
+import com.yunfeiyun.agmp.iot.common.domain.IotWarnreceiver;
+import com.yunfeiyun.agmp.iotm.web.mapper.IotWarnreceiverMapper;
+import com.yunfeiyun.agmp.iotm.web.service.IIotWarnreceiverService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * 告警接收者Service业务层处理
+ * 
+ * @author 杨晓辉
+ * @date 2025-03-07
+ */
+@Service
+public class IotWarnreceiverServiceImpl implements IIotWarnreceiverService {
+    @Autowired
+    private IotWarnreceiverMapper iotWarnreceiverMapper;
+
+    /**
+     * 查询告警接收者
+     * 
+     * @param wrBid 告警接收者主键
+     * @return 告警接收者
+     */
+    @Override
+    public IotWarnreceiver selectIotWarnreceiverByWrBid(String wrBid, String tid){
+        return iotWarnreceiverMapper.selectIotWarnreceiverByWrBid(wrBid, tid);
+    }
+
+    /**
+     * 查询告警接收者列表
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 告警接收者
+     */
+    @Override
+    public List<IotWarnreceiver> selectIotWarnreceiverList(IotWarnreceiver iotWarnreceiver){
+        return iotWarnreceiverMapper.selectIotWarnreceiverList(iotWarnreceiver);
+    }
+
+    /**
+     * 新增告警接收者
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 结果
+     */
+    @Override
+    public int insertIotWarnreceiver(IotWarnreceiver iotWarnreceiver){
+        return iotWarnreceiverMapper.insertIotWarnreceiver(iotWarnreceiver);
+    }
+
+    /**
+     * 修改告警接收者
+     * 
+     * @param iotWarnreceiver 告警接收者
+     * @return 结果
+     */
+    @Override
+    public int updateIotWarnreceiver(IotWarnreceiver iotWarnreceiver){
+        return iotWarnreceiverMapper.updateIotWarnreceiver(iotWarnreceiver);
+    }
+
+    /**
+     * 批量删除告警接收者
+     * 
+     * @param wrBids 需要删除的告警接收者主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnreceiverByWrBids(String[] wrBids, String tid){
+        return iotWarnreceiverMapper.deleteIotWarnreceiverByWrBids(wrBids, tid);
+    }
+
+    /**
+     * 删除告警接收者信息
+     * 
+     * @param wrBid 告警接收者主键
+     * @return 结果
+     */
+    @Override
+    public int deleteIotWarnreceiverByWrBid(String wrBid, String tid){
+        return iotWarnreceiverMapper.deleteIotWarnreceiverByWrBid(wrBid, tid);
+    }
+}

+ 111 - 0
src/main/resources/mapper/IotWarnconfigMapper.xml

@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnconfigMapper">
+    
+    <resultMap type="IotWarnconfig" id="IotWarnconfigResult">
+        <result property="id"    column="id"    />
+        <result property="wcBid"    column="wcBid"    />
+        <result property="wcName"    column="wcName"    />
+        <result property="wcDesc"    column="wcDesc"    />
+        <result property="wcStatus"    column="wcStatus"    />
+        <result property="wcLevel"    column="wcLevel"    />
+        <result property="wcTouchtype"    column="wcTouchtype"    />
+        <result property="wcCondition"    column="wcCondition"    />
+        <result property="wcCreator"    column="wcCreator"    />
+        <result property="wcCreateddate"    column="wcCreateddate"    />
+        <result property="wcModifieddate"    column="wcModifieddate"    />
+        <result property="wcModifier"    column="wcModifier"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarnconfigVo">
+        select id, wcBid, wcName, wcDesc, wcStatus, wcLevel, wcTouchtype, wcCondition, wcCreator, wcCreateddate, wcModifieddate, wcModifier, tid from IotWarnconfig
+    </sql>
+
+    <select id="selectIotWarnconfigList" parameterType="IotWarnconfig" resultMap="IotWarnconfigResult">
+        <include refid="selectIotWarnconfigVo"/>
+        <where>  
+            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
+            <if test="wcName != null  and wcName != ''"> and wcName like concat('%', #{wcName}, '%')</if>
+            <if test="wcDesc != null  and wcDesc != ''"> and wcDesc = #{wcDesc}</if>
+            <if test="wcStatus != null  and wcStatus != ''"> and wcStatus = #{wcStatus}</if>
+            <if test="wcLevel != null  and wcLevel != ''"> and wcLevel = #{wcLevel}</if>
+            <if test="wcTouchtype != null  and wcTouchtype != ''"> and wcTouchtype = #{wcTouchtype}</if>
+            <if test="wcCondition != null  and wcCondition != ''"> and wcCondition = #{wcCondition}</if>
+            <if test="wcCreator != null  and wcCreator != ''"> and wcCreator = #{wcCreator}</if>
+            <if test="wcCreateddate != null  and wcCreateddate != ''"> and wcCreateddate = #{wcCreateddate}</if>
+            <if test="wcModifieddate != null  and wcModifieddate != ''"> and wcModifieddate = #{wcModifieddate}</if>
+            <if test="wcModifier != null  and wcModifier != ''"> and wcModifier = #{wcModifier}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarnconfigByWcBid" parameterType="Long" resultMap="IotWarnconfigResult">
+        <include refid="selectIotWarnconfigVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarnconfig" parameterType="IotWarnconfig" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarnconfig
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wcBid != null">wcBid,</if>
+            <if test="wcName != null">wcName,</if>
+            <if test="wcDesc != null">wcDesc,</if>
+            <if test="wcStatus != null">wcStatus,</if>
+            <if test="wcLevel != null">wcLevel,</if>
+            <if test="wcTouchtype != null">wcTouchtype,</if>
+            <if test="wcCondition != null">wcCondition,</if>
+            <if test="wcCreator != null">wcCreator,</if>
+            <if test="wcCreateddate != null">wcCreateddate,</if>
+            <if test="wcModifieddate != null">wcModifieddate,</if>
+            <if test="wcModifier != null">wcModifier,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wcBid != null">#{wcBid},</if>
+            <if test="wcName != null">#{wcName},</if>
+            <if test="wcDesc != null">#{wcDesc},</if>
+            <if test="wcStatus != null">#{wcStatus},</if>
+            <if test="wcLevel != null">#{wcLevel},</if>
+            <if test="wcTouchtype != null">#{wcTouchtype},</if>
+            <if test="wcCondition != null">#{wcCondition},</if>
+            <if test="wcCreator != null">#{wcCreator},</if>
+            <if test="wcCreateddate != null">#{wcCreateddate},</if>
+            <if test="wcModifieddate != null">#{wcModifieddate},</if>
+            <if test="wcModifier != null">#{wcModifier},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarnconfig" parameterType="IotWarnconfig">
+        update IotWarnconfig
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wcBid != null">wcBid = #{wcBid},</if>
+            <if test="wcName != null">wcName = #{wcName},</if>
+            <if test="wcDesc != null">wcDesc = #{wcDesc},</if>
+            <if test="wcStatus != null">wcStatus = #{wcStatus},</if>
+            <if test="wcLevel != null">wcLevel = #{wcLevel},</if>
+            <if test="wcTouchtype != null">wcTouchtype = #{wcTouchtype},</if>
+            <if test="wcCondition != null">wcCondition = #{wcCondition},</if>
+            <if test="wcCreator != null">wcCreator = #{wcCreator},</if>
+            <if test="wcCreateddate != null">wcCreateddate = #{wcCreateddate},</if>
+            <if test="wcModifieddate != null">wcModifieddate = #{wcModifieddate},</if>
+            <if test="wcModifier != null">wcModifier = #{wcModifier},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarnconfigByWcBid" parameterType="Long">
+        delete from IotWarnconfig where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarnconfigWcBids" parameterType="String">
+        delete from IotWarnconfig where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 81 - 0
src/main/resources/mapper/IotWarncountMapper.xml

@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarncountMapper">
+    
+    <resultMap type="IotWarncount" id="IotWarncountResult">
+        <result property="id"    column="id"    />
+        <result property="wctBid"    column="wctBid"    />
+        <result property="wcBid"    column="wcBid"    />
+        <result property="devBid"    column="devBid"    />
+        <result property="wctCount"    column="wctCount"    />
+        <result property="lastUpdateTime"    column="lastUpdateTime"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarncountVo">
+        select id, wctBid, wcBid, devBid, wctCount, lastUpdateTime, tid from IotWarncount
+    </sql>
+
+    <select id="selectIotWarncountList" parameterType="IotWarncount" resultMap="IotWarncountResult">
+        <include refid="selectIotWarncountVo"/>
+        <where>  
+            <if test="wctBid != null  and wctBid != ''"> and wctBid = #{wctBid}</if>
+            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
+            <if test="devBid != null  and devBid != ''"> and devBid = #{devBid}</if>
+            <if test="wctCount != null "> and wctCount = #{wctCount}</if>
+            <if test="lastUpdateTime != null "> and lastUpdateTime = #{lastUpdateTime}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarncountByWctBid" parameterType="Long" resultMap="IotWarncountResult">
+        <include refid="selectIotWarncountVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarncount" parameterType="IotWarncount" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarncount
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wctBid != null">wctBid,</if>
+            <if test="wcBid != null">wcBid,</if>
+            <if test="devBid != null">devBid,</if>
+            <if test="wctCount != null">wctCount,</if>
+            <if test="lastUpdateTime != null">lastUpdateTime,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wctBid != null">#{wctBid},</if>
+            <if test="wcBid != null">#{wcBid},</if>
+            <if test="devBid != null">#{devBid},</if>
+            <if test="wctCount != null">#{wctCount},</if>
+            <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarncount" parameterType="IotWarncount">
+        update IotWarncount
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wctBid != null">wctBid = #{wctBid},</if>
+            <if test="wcBid != null">wcBid = #{wcBid},</if>
+            <if test="devBid != null">devBid = #{devBid},</if>
+            <if test="wctCount != null">wctCount = #{wctCount},</if>
+            <if test="lastUpdateTime != null">lastUpdateTime = #{lastUpdateTime},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarncountByWctBid" parameterType="Long">
+        delete from IotWarncount where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarncountByWctBids" parameterType="String">
+        delete from IotWarncount where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 86 - 0
src/main/resources/mapper/IotWarndataitemMapper.xml

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarndataitemMapper">
+    
+    <resultMap type="IotWarndataitem" id="IotWarndataitemResult">
+        <result property="id"    column="id"    />
+        <result property="wdBid"    column="wdBid"    />
+        <result property="wdType"    column="wdType"    />
+        <result property="wdObjid"    column="wdObjid"    />
+        <result property="wdName"    column="wdName"    />
+        <result property="wdCode"    column="wdCode"    />
+        <result property="wdUnit"    column="wdUnit"    />
+        <result property="wdOptiontype"    column="wdOptiontype"    />
+    </resultMap>
+
+    <sql id="selectIotWarndataitemVo">
+        select id, wdBid, wdType, wdObjid, wdName, wdCode, wdUnit, wdOptiontype from IotWarndataitem
+    </sql>
+
+    <select id="selectIotWarndataitemList" parameterType="IotWarndataitem" resultMap="IotWarndataitemResult">
+        <include refid="selectIotWarndataitemVo"/>
+        <where>  
+            <if test="wdBid != null  and wdBid != ''"> and wdBid = #{wdBid}</if>
+            <if test="wdType != null  and wdType != ''"> and wdType = #{wdType}</if>
+            <if test="wdObjid != null  and wdObjid != ''"> and wdObjid = #{wdObjid}</if>
+            <if test="wdName != null  and wdName != ''"> and wdName like concat('%', #{wdName}, '%')</if>
+            <if test="wdCode != null  and wdCode != ''"> and wdCode = #{wdCode}</if>
+            <if test="wdUnit != null  and wdUnit != ''"> and wdUnit = #{wdUnit}</if>
+            <if test="wdOptiontype != null  and wdOptiontype != ''"> and wdOptiontype = #{wdOptiontype}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarndataitemByWdBid" parameterType="Long" resultMap="IotWarndataitemResult">
+        <include refid="selectIotWarndataitemVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarndataitem" parameterType="IotWarndataitem" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarndataitem
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wdBid != null">wdBid,</if>
+            <if test="wdType != null">wdType,</if>
+            <if test="wdObjid != null">wdObjid,</if>
+            <if test="wdName != null">wdName,</if>
+            <if test="wdCode != null">wdCode,</if>
+            <if test="wdUnit != null">wdUnit,</if>
+            <if test="wdOptiontype != null">wdOptiontype,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wdBid != null">#{wdBid},</if>
+            <if test="wdType != null">#{wdType},</if>
+            <if test="wdObjid != null">#{wdObjid},</if>
+            <if test="wdName != null">#{wdName},</if>
+            <if test="wdCode != null">#{wdCode},</if>
+            <if test="wdUnit != null">#{wdUnit},</if>
+            <if test="wdOptiontype != null">#{wdOptiontype},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarndataitem" parameterType="IotWarndataitem">
+        update IotWarndataitem
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wdBid != null">wdBid = #{wdBid},</if>
+            <if test="wdType != null">wdType = #{wdType},</if>
+            <if test="wdObjid != null">wdObjid = #{wdObjid},</if>
+            <if test="wdName != null">wdName = #{wdName},</if>
+            <if test="wdCode != null">wdCode = #{wdCode},</if>
+            <if test="wdUnit != null">wdUnit = #{wdUnit},</if>
+            <if test="wdOptiontype != null">wdOptiontype = #{wdOptiontype},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarndataitemByWdBid" parameterType="Long">
+        delete from IotWarndataitem where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarndataitemByWdBids" parameterType="String">
+        delete from IotWarndataitem where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 101 - 0
src/main/resources/mapper/IotWarnindicatorMapper.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnindicatorMapper">
+    
+    <resultMap type="IotWarnindicator" id="IotWarnindicatorResult">
+        <result property="id"    column="id"    />
+        <result property="wiBid"    column="wiBid"    />
+        <result property="wcBid"    column="wcBid"    />
+        <result property="wdBid"    column="wdBid"    />
+        <result property="wiExpression"    column="wiExpression"    />
+        <result property="wiValue"    column="wiValue"    />
+        <result property="wiCreator"    column="wiCreator"    />
+        <result property="wiCreateddate"    column="wiCreateddate"    />
+        <result property="wiModifieddate"    column="wiModifieddate"    />
+        <result property="wiModifier"    column="wiModifier"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarnindicatorVo">
+        select id, wiBid, wcBid, wdBid, wiExpression, wiValue, wiCreator, wiCreateddate, wiModifieddate, wiModifier, tid from IotWarnindicator
+    </sql>
+
+    <select id="selectIotWarnindicatorList" parameterType="IotWarnindicator" resultMap="IotWarnindicatorResult">
+        <include refid="selectIotWarnindicatorVo"/>
+        <where>  
+            <if test="wiBid != null  and wiBid != ''"> and wiBid = #{wiBid}</if>
+            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
+            <if test="wdBid != null  and wdBid != ''"> and wdBid = #{wdBid}</if>
+            <if test="wiExpression != null  and wiExpression != ''"> and wiExpression = #{wiExpression}</if>
+            <if test="wiValue != null  and wiValue != ''"> and wiValue = #{wiValue}</if>
+            <if test="wiCreator != null  and wiCreator != ''"> and wiCreator = #{wiCreator}</if>
+            <if test="wiCreateddate != null  and wiCreateddate != ''"> and wiCreateddate = #{wiCreateddate}</if>
+            <if test="wiModifieddate != null  and wiModifieddate != ''"> and wiModifieddate = #{wiModifieddate}</if>
+            <if test="wiModifier != null  and wiModifier != ''"> and wiModifier = #{wiModifier}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarnindicatorByWiBid" parameterType="Long" resultMap="IotWarnindicatorResult">
+        <include refid="selectIotWarnindicatorVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarnindicator" parameterType="IotWarnindicator" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarnindicator
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wiBid != null">wiBid,</if>
+            <if test="wcBid != null">wcBid,</if>
+            <if test="wdBid != null">wdBid,</if>
+            <if test="wiExpression != null">wiExpression,</if>
+            <if test="wiValue != null">wiValue,</if>
+            <if test="wiCreator != null">wiCreator,</if>
+            <if test="wiCreateddate != null">wiCreateddate,</if>
+            <if test="wiModifieddate != null">wiModifieddate,</if>
+            <if test="wiModifier != null">wiModifier,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wiBid != null">#{wiBid},</if>
+            <if test="wcBid != null">#{wcBid},</if>
+            <if test="wdBid != null">#{wdBid},</if>
+            <if test="wiExpression != null">#{wiExpression},</if>
+            <if test="wiValue != null">#{wiValue},</if>
+            <if test="wiCreator != null">#{wiCreator},</if>
+            <if test="wiCreateddate != null">#{wiCreateddate},</if>
+            <if test="wiModifieddate != null">#{wiModifieddate},</if>
+            <if test="wiModifier != null">#{wiModifier},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarnindicator" parameterType="IotWarnindicator">
+        update IotWarnindicator
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wiBid != null">wiBid = #{wiBid},</if>
+            <if test="wcBid != null">wcBid = #{wcBid},</if>
+            <if test="wdBid != null">wdBid = #{wdBid},</if>
+            <if test="wiExpression != null">wiExpression = #{wiExpression},</if>
+            <if test="wiValue != null">wiValue = #{wiValue},</if>
+            <if test="wiCreator != null">wiCreator = #{wiCreator},</if>
+            <if test="wiCreateddate != null">wiCreateddate = #{wiCreateddate},</if>
+            <if test="wiModifieddate != null">wiModifieddate = #{wiModifieddate},</if>
+            <if test="wiModifier != null">wiModifier = #{wiModifier},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarnindicatorByWiBid" parameterType="Long">
+        delete from IotWarnindicator where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarnindicatorByWiBids" parameterType="String">
+        delete from IotWarnindicator where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 126 - 0
src/main/resources/mapper/IotWarnlogMapper.xml

@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnlogMapper">
+    
+    <resultMap type="IotWarnlog" id="IotWarnlogResult">
+        <result property="id"    column="id"    />
+        <result property="wlBid"    column="wlBid"    />
+        <result property="wrName"    column="wrName"    />
+        <result property="wrType"    column="wrType"    />
+        <result property="wrContent"    column="wrContent"    />
+        <result property="wrLevel"    column="wrLevel"    />
+        <result property="devtypeBid"    column="devtypeBid"    />
+        <result property="devBid"    column="devBid"    />
+        <result property="status"    column="status"    />
+        <result property="wrDealuserid"    column="wrDealuserid"    />
+        <result property="wrDealresult"    column="wrDealresult"    />
+        <result property="wrDealtime"    column="wrDealtime"    />
+        <result property="wrCreator"    column="wrCreator"    />
+        <result property="wrCreateddate"    column="wrCreateddate"    />
+        <result property="wrData"    column="wrData"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarnlogVo">
+        select id, wlBid, wrName, wrType, wrContent, wrLevel, devtypeBid, devBid, status, wrDealuserid, wrDealresult, wrDealtime, wrCreator, wrCreateddate, wrData, tid from IotWarnlog
+    </sql>
+
+    <select id="selectIotWarnlogList" parameterType="IotWarnlog" resultMap="IotWarnlogResult">
+        <include refid="selectIotWarnlogVo"/>
+        <where>  
+            <if test="wlBid != null  and wlBid != ''"> and wlBid = #{wlBid}</if>
+            <if test="wrName != null  and wrName != ''"> and wrName like concat('%', #{wrName}, '%')</if>
+            <if test="wrType != null  and wrType != ''"> and wrType = #{wrType}</if>
+            <if test="wrContent != null  and wrContent != ''"> and wrContent = #{wrContent}</if>
+            <if test="wrLevel != null  and wrLevel != ''"> and wrLevel = #{wrLevel}</if>
+            <if test="devtypeBid != null  and devtypeBid != ''"> and devtypeBid = #{devtypeBid}</if>
+            <if test="devBid != null  and devBid != ''"> and devBid = #{devBid}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="wrDealuserid != null  and wrDealuserid != ''"> and wrDealuserid = #{wrDealuserid}</if>
+            <if test="wrDealresult != null  and wrDealresult != ''"> and wrDealresult = #{wrDealresult}</if>
+            <if test="wrDealtime != null  and wrDealtime != ''"> and wrDealtime = #{wrDealtime}</if>
+            <if test="wrCreator != null  and wrCreator != ''"> and wrCreator = #{wrCreator}</if>
+            <if test="wrCreateddate != null  and wrCreateddate != ''"> and wrCreateddate = #{wrCreateddate}</if>
+            <if test="wrData != null  and wrData != ''"> and wrData = #{wrData}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarnlogById" parameterType="Long" resultMap="IotWarnlogResult">
+        <include refid="selectIotWarnlogVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarnlog" parameterType="IotWarnlog" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarnlog
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wlBid != null">wlBid,</if>
+            <if test="wrName != null">wrName,</if>
+            <if test="wrType != null">wrType,</if>
+            <if test="wrContent != null">wrContent,</if>
+            <if test="wrLevel != null">wrLevel,</if>
+            <if test="devtypeBid != null">devtypeBid,</if>
+            <if test="devBid != null">devBid,</if>
+            <if test="status != null">status,</if>
+            <if test="wrDealuserid != null">wrDealuserid,</if>
+            <if test="wrDealresult != null">wrDealresult,</if>
+            <if test="wrDealtime != null">wrDealtime,</if>
+            <if test="wrCreator != null">wrCreator,</if>
+            <if test="wrCreateddate != null">wrCreateddate,</if>
+            <if test="wrData != null">wrData,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wlBid != null">#{wlBid},</if>
+            <if test="wrName != null">#{wrName},</if>
+            <if test="wrType != null">#{wrType},</if>
+            <if test="wrContent != null">#{wrContent},</if>
+            <if test="wrLevel != null">#{wrLevel},</if>
+            <if test="devtypeBid != null">#{devtypeBid},</if>
+            <if test="devBid != null">#{devBid},</if>
+            <if test="status != null">#{status},</if>
+            <if test="wrDealuserid != null">#{wrDealuserid},</if>
+            <if test="wrDealresult != null">#{wrDealresult},</if>
+            <if test="wrDealtime != null">#{wrDealtime},</if>
+            <if test="wrCreator != null">#{wrCreator},</if>
+            <if test="wrCreateddate != null">#{wrCreateddate},</if>
+            <if test="wrData != null">#{wrData},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarnlog" parameterType="IotWarnlog">
+        update IotWarnlog
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wlBid != null">wlBid = #{wlBid},</if>
+            <if test="wrName != null">wrName = #{wrName},</if>
+            <if test="wrType != null">wrType = #{wrType},</if>
+            <if test="wrContent != null">wrContent = #{wrContent},</if>
+            <if test="wrLevel != null">wrLevel = #{wrLevel},</if>
+            <if test="devtypeBid != null">devtypeBid = #{devtypeBid},</if>
+            <if test="devBid != null">devBid = #{devBid},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="wrDealuserid != null">wrDealuserid = #{wrDealuserid},</if>
+            <if test="wrDealresult != null">wrDealresult = #{wrDealresult},</if>
+            <if test="wrDealtime != null">wrDealtime = #{wrDealtime},</if>
+            <if test="wrCreator != null">wrCreator = #{wrCreator},</if>
+            <if test="wrCreateddate != null">wrCreateddate = #{wrCreateddate},</if>
+            <if test="wrData != null">wrData = #{wrData},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarnlogByWlBid" parameterType="Long">
+        delete from IotWarnlog where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarnlogByWlBids" parameterType="String">
+        delete from IotWarnlog where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 76 - 0
src/main/resources/mapper/IotWarnobjectMapper.xml

@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnobjectMapper">
+    
+    <resultMap type="IotWarnobject" id="IotWarnobjectResult">
+        <result property="id"    column="id"    />
+        <result property="woBid"    column="woBid"    />
+        <result property="wcBid"    column="wcBid"    />
+        <result property="woType"    column="woType"    />
+        <result property="woObjid"    column="woObjid"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarnobjectVo">
+        select id, woBid, wcBid, woType, woObjid, tid from IotWarnobject
+    </sql>
+
+    <select id="selectIotWarnobjectList" parameterType="IotWarnobject" resultMap="IotWarnobjectResult">
+        <include refid="selectIotWarnobjectVo"/>
+        <where>  
+            <if test="woBid != null  and woBid != ''"> and woBid = #{woBid}</if>
+            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
+            <if test="woType != null  and woType != ''"> and woType = #{woType}</if>
+            <if test="woObjid != null  and woObjid != ''"> and woObjid = #{woObjid}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarnobjectByWoBid" parameterType="Long" resultMap="IotWarnobjectResult">
+        <include refid="selectIotWarnobjectVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarnobject" parameterType="IotWarnobject" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarnobject
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="woBid != null">woBid,</if>
+            <if test="wcBid != null">wcBid,</if>
+            <if test="woType != null">woType,</if>
+            <if test="woObjid != null">woObjid,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="woBid != null">#{woBid},</if>
+            <if test="wcBid != null">#{wcBid},</if>
+            <if test="woType != null">#{woType},</if>
+            <if test="woObjid != null">#{woObjid},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarnobject" parameterType="IotWarnobject">
+        update IotWarnobject
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="woBid != null">woBid = #{woBid},</if>
+            <if test="wcBid != null">wcBid = #{wcBid},</if>
+            <if test="woType != null">woType = #{woType},</if>
+            <if test="woObjid != null">woObjid = #{woObjid},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarnobjectByWoBid" parameterType="Long">
+        delete from IotWarnobject where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarnobjectByWoBids" parameterType="String">
+        delete from IotWarnobject where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 106 - 0
src/main/resources/mapper/IotWarnpolicyMapper.xml

@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnpolicyMapper">
+    
+    <resultMap type="IotWarnpolicy" id="IotWarnpolicyResult">
+        <result property="id"    column="id"    />
+        <result property="wpBid"    column="wpBid"    />
+        <result property="wcBid"    column="wcBid"    />
+        <result property="wpFrequency"    column="wpFrequency"    />
+        <result property="wpType"    column="wpType"    />
+        <result property="deliveryTimePeriod"    column="deliveryTimePeriod"    />
+        <result property="wpChannel"    column="wpChannel"    />
+        <result property="wpCreator"    column="wpCreator"    />
+        <result property="wpCreateddate"    column="wpCreateddate"    />
+        <result property="wpModifieddate"    column="wpModifieddate"    />
+        <result property="wpModifier"    column="wpModifier"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarnpolicyVo">
+        select id, wpBid, wcBid, wpFrequency, wpType, deliveryTimePeriod, wpChannel, wpCreator, wpCreateddate, wpModifieddate, wpModifier, tid from IotWarnpolicy
+    </sql>
+
+    <select id="selectIotWarnpolicyList" parameterType="IotWarnpolicy" resultMap="IotWarnpolicyResult">
+        <include refid="selectIotWarnpolicyVo"/>
+        <where>  
+            <if test="wpBid != null  and wpBid != ''"> and wpBid = #{wpBid}</if>
+            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
+            <if test="wpFrequency != null  and wpFrequency != ''"> and wpFrequency = #{wpFrequency}</if>
+            <if test="wpType != null  and wpType != ''"> and wpType = #{wpType}</if>
+            <if test="deliveryTimePeriod != null  and deliveryTimePeriod != ''"> and deliveryTimePeriod = #{deliveryTimePeriod}</if>
+            <if test="wpChannel != null  and wpChannel != ''"> and wpChannel = #{wpChannel}</if>
+            <if test="wpCreator != null  and wpCreator != ''"> and wpCreator = #{wpCreator}</if>
+            <if test="wpCreateddate != null  and wpCreateddate != ''"> and wpCreateddate = #{wpCreateddate}</if>
+            <if test="wpModifieddate != null  and wpModifieddate != ''"> and wpModifieddate = #{wpModifieddate}</if>
+            <if test="wpModifier != null  and wpModifier != ''"> and wpModifier = #{wpModifier}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarnpolicyById" parameterType="Long" resultMap="IotWarnpolicyResult">
+        <include refid="selectIotWarnpolicyVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarnpolicy" parameterType="IotWarnpolicy" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarnpolicy
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wpBid != null">wpBid,</if>
+            <if test="wcBid != null">wcBid,</if>
+            <if test="wpFrequency != null">wpFrequency,</if>
+            <if test="wpType != null">wpType,</if>
+            <if test="deliveryTimePeriod != null">deliveryTimePeriod,</if>
+            <if test="wpChannel != null">wpChannel,</if>
+            <if test="wpCreator != null">wpCreator,</if>
+            <if test="wpCreateddate != null">wpCreateddate,</if>
+            <if test="wpModifieddate != null">wpModifieddate,</if>
+            <if test="wpModifier != null">wpModifier,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wpBid != null">#{wpBid},</if>
+            <if test="wcBid != null">#{wcBid},</if>
+            <if test="wpFrequency != null">#{wpFrequency},</if>
+            <if test="wpType != null">#{wpType},</if>
+            <if test="deliveryTimePeriod != null">#{deliveryTimePeriod},</if>
+            <if test="wpChannel != null">#{wpChannel},</if>
+            <if test="wpCreator != null">#{wpCreator},</if>
+            <if test="wpCreateddate != null">#{wpCreateddate},</if>
+            <if test="wpModifieddate != null">#{wpModifieddate},</if>
+            <if test="wpModifier != null">#{wpModifier},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarnpolicy" parameterType="IotWarnpolicy">
+        update IotWarnpolicy
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wpBid != null">wpBid = #{wpBid},</if>
+            <if test="wcBid != null">wcBid = #{wcBid},</if>
+            <if test="wpFrequency != null">wpFrequency = #{wpFrequency},</if>
+            <if test="wpType != null">wpType = #{wpType},</if>
+            <if test="deliveryTimePeriod != null">deliveryTimePeriod = #{deliveryTimePeriod},</if>
+            <if test="wpChannel != null">wpChannel = #{wpChannel},</if>
+            <if test="wpCreator != null">wpCreator = #{wpCreator},</if>
+            <if test="wpCreateddate != null">wpCreateddate = #{wpCreateddate},</if>
+            <if test="wpModifieddate != null">wpModifieddate = #{wpModifieddate},</if>
+            <if test="wpModifier != null">wpModifier = #{wpModifier},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarnpolicyByWpBid" parameterType="Long">
+        delete from IotWarnpolicy where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarnpolicyByWpBids" parameterType="String">
+        delete from IotWarnpolicy where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 71 - 0
src/main/resources/mapper/IotWarnreceiverMapper.xml

@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnreceiverMapper">
+    
+    <resultMap type="IotWarnreceiver" id="IotWarnreceiverResult">
+        <result property="id"    column="id"    />
+        <result property="wrBid"    column="wrBid"    />
+        <result property="wcBid"    column="wcBid"    />
+        <result property="wruserId"    column="wruserId"    />
+        <result property="tid"    column="tid"    />
+    </resultMap>
+
+    <sql id="selectIotWarnreceiverVo">
+        select id, wrBid, wcBid, wruserId, tid from IotWarnreceiver
+    </sql>
+
+    <select id="selectIotWarnreceiverList" parameterType="IotWarnreceiver" resultMap="IotWarnreceiverResult">
+        <include refid="selectIotWarnreceiverVo"/>
+        <where>  
+            <if test="wrBid != null  and wrBid != ''"> and wrBid = #{wrBid}</if>
+            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
+            <if test="wruserId != null  and wruserId != ''"> and wruserId = #{wruserId}</if>
+            <if test="tid != null  and tid != ''"> and tid = #{tid}</if>
+        </where>
+    </select>
+    
+    <select id="selectIotWarnreceiverByWrBid" parameterType="Long" resultMap="IotWarnreceiverResult">
+        <include refid="selectIotWarnreceiverVo"/>
+        where id = #{id} and tid = #{tid}
+    </select>
+        
+    <insert id="insertIotWarnreceiver" parameterType="IotWarnreceiver" useGeneratedKeys="true" keyProperty="id">
+        insert into IotWarnreceiver
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="wrBid != null">wrBid,</if>
+            <if test="wcBid != null">wcBid,</if>
+            <if test="wruserId != null">wruserId,</if>
+            <if test="tid != null and tid != ''">tid,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="wrBid != null">#{wrBid},</if>
+            <if test="wcBid != null">#{wcBid},</if>
+            <if test="wruserId != null">#{wruserId},</if>
+            <if test="tid != null and tid != ''">#{tid},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIotWarnreceiver" parameterType="IotWarnreceiver">
+        update IotWarnreceiver
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="wrBid != null">wrBid = #{wrBid},</if>
+            <if test="wcBid != null">wcBid = #{wcBid},</if>
+            <if test="wruserId != null">wruserId = #{wruserId},</if>
+            <if test="tid != null and tid != ''">tid = #{tid},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIotWarnreceiverByWrBid" parameterType="Long">
+        delete from IotWarnreceiver where id = #{id} and tid = #{tid}
+    </delete>
+
+    <delete id="deleteIotWarnreceiverByWrBids" parameterType="String">
+        delete from IotWarnreceiver where tid = #{tid} and id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>