新增预警/告警技术监督数据
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user