在线监测算法每日更新导致告警单丢失问题

This commit is contained in:
xy
2025-12-26 11:24:22 +08:00
parent 2dccb22cf8
commit 6d8bfacd0a
4 changed files with 53 additions and 7 deletions

View File

@@ -168,10 +168,10 @@ public class DeptLineController extends BaseController {
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
@PostMapping("/getAllData")
@ApiOperation("获取部门监测点表所有数据")
@ApiOperation("获取部门监测点表数据(仅查询在运监测点)")
public HttpResult<List<DeptLine>> getAllData() {
String methodDescribe = getMethodDescribe("getAllData");
List<DeptLine> list = deptLineMapper.selectList(null);
List<DeptLine> list = deptLineMapper.getOnlineMonitor();
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
}
}

View File

@@ -95,4 +95,6 @@ public interface DeptLineMapper extends BaseMapper<DeptLine> {
List<SubGetBase> selectSubStationList(@Param("param") SubstationParam substationParam);
List<String> getLineByDeptIdAndNewStation(@Param("ids") List<String> id,@Param("dictTree")List<String> dictTree);
List<DeptLine> getOnlineMonitor();
}

View File

@@ -300,4 +300,16 @@
</if>
</where>
</select>
<select id="getOnlineMonitor" resultType="DeptLine">
select
t1.Line_Id lineId,
t1.Id id
from
pq_dept_line t1,
pq_line_detail t2
where
t1.Line_Id = t2.Id and t2.Run_Flag = 0
</select>
</mapper>