在线监测算法每日更新导致告警单丢失问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user