diff --git a/src/main/java/com/zhgd/xmgl/modules/basicdata/mapper/xml/BaseMenuMapper.xml b/src/main/java/com/zhgd/xmgl/modules/basicdata/mapper/xml/BaseMenuMapper.xml
index 07d036ccd..5d749c4d5 100644
--- a/src/main/java/com/zhgd/xmgl/modules/basicdata/mapper/xml/BaseMenuMapper.xml
+++ b/src/main/java/com/zhgd/xmgl/modules/basicdata/mapper/xml/BaseMenuMapper.xml
@@ -38,9 +38,9 @@
order by t3.parent_id,t3.priority
@@ -51,4 +51,4 @@
WHERE b.user_id=#{userId} and a.status=1 and m.style_type=#{styleType}
order by a.parent_id,a.priority
-
\ No newline at end of file
+
diff --git a/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerAlarmController.java b/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerAlarmController.java
index 305c0c7e9..40c8af76a 100644
--- a/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerAlarmController.java
+++ b/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerAlarmController.java
@@ -12,6 +12,7 @@ import com.zhgd.xmgl.modules.basicdata.entity.SystemUser;
import com.zhgd.xmgl.modules.basicdata.service.ISystemUserService;
import com.zhgd.xmgl.modules.bigdevice.entity.Tower;
import com.zhgd.xmgl.modules.bigdevice.entity.TowerAlarm;
+import com.zhgd.xmgl.modules.bigdevice.entity.vo.AlarmsDistinguishedNumberByAlarmType;
import com.zhgd.xmgl.modules.bigdevice.service.ITowerAlarmService;
import com.zhgd.xmgl.modules.bigdevice.service.ITowerService;
import io.swagger.annotations.Api;
@@ -340,4 +341,17 @@ public class TowerAlarmController {
return Result.error("参数错误 ").data(false);
}
}
+
+ @ApiOperation(value = "查询报警数量(按报警类型区分)", notes = "查询报警数量(按报警类型区分)", httpMethod = "POST")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
+ @ApiImplicitParam(name = "devSn", value = "设备sn", paramType = "query", required = false, dataType = "String"),
+ @ApiImplicitParam(name = "queryStartTime", value = "查询开始时间,格式:2023-05-22 18:00:00", paramType = "query", required = true, dataType = "String"),
+ @ApiImplicitParam(name = "queryEndTime", value = "查询结束时间,格式:2023-05-22 18:00:00", paramType = "query", required = true, dataType = "String"),
+ })
+ @PostMapping(value = "/queryAlarmsDistinguishedNumberByAlarmType")
+ public Result queryAlarmsDistinguishedNumberByAlarmType(@RequestBody Map map) {
+ return Result.success(towerAlarmService.queryAlarmsDistinguishedNumberByAlarmType(map));
+ }
+
}
diff --git a/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerController.java b/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerController.java
index e49079fe8..cbbf48ea2 100644
--- a/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerController.java
+++ b/src/main/java/com/zhgd/xmgl/modules/bigdevice/controller/TowerController.java
@@ -6,6 +6,7 @@ import com.zhgd.jeecg.common.api.vo.Result;
import com.zhgd.jeecg.common.mybatis.EntityMap;
import com.zhgd.xmgl.modules.bigdevice.entity.Tower;
import com.zhgd.xmgl.modules.bigdevice.entity.vo.TowerAndDataInfoVO;
+import com.zhgd.xmgl.modules.bigdevice.entity.vo.TowerNumAndAlarmCount;
import com.zhgd.xmgl.modules.bigdevice.service.ITowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
@@ -149,7 +150,7 @@ public class TowerController {
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "query", required = true, dataType = "String"),
})
@PostMapping(value = "/selectTowerNumAndAlarmCount")
- public Result