新增预警/告警技术监督数据

This commit is contained in:
Lee
2023-03-21 14:34:35 +08:00
parent a82728c7a8
commit 883524e182
31 changed files with 1041 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
package com.njcn.process.mapper;
import com.njcn.harmonic.pojo.vo.ThsStrategyVo;
import com.njcn.process.pojo.param.StrategyParam;
import com.njcn.process.pojo.po.ThsWarnStrategy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@@ -35,4 +36,12 @@ public interface ThsWarnStrategyMapper extends BaseMapper<ThsWarnStrategy> {
* @return List<String>
*/
List<String> getStrategyDetail(@Param("id") String id);
/**
* 查询所有部门的策略列表
*
* @return
*/
List<ThsStrategyVo> selectStrategyList();
}

View File

@@ -50,6 +50,22 @@
WHERE
Warn_Id = #{id} and ts.Type=1
</select>
<!--查询所有部门的策略列表-->
<select id="selectStrategyList" resultType="com.njcn.harmonic.pojo.vo.ThsStrategyVo">
select
tws.id,
tws.name,
tws.grade,
tws.operation,
tws.type,
tda.dept_Id as deptId
from
ths_warn_strategy tws
left join ths_dept_alarm tda on
tws.Id = tda.Alarm_Id
where
tws.State = 1 and tws.Grade in(0,2)
</select>
</mapper>