From 73b24c8664c66857412c0065d4ee6ee487c61fd8 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期四, 12 六月 2025 17:10:30 +0800 Subject: [PATCH] 增加测点异常历史表查询接口,新增查询测点数量接口 --- iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml index bd170f0..1808b54 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml +++ b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/point/DaPointDao.xml @@ -345,4 +345,24 @@ </where> </select> + <select id="getPointCount" resultType="long"> + select count(*) + from t_da_point t1 + left join t_da_point_collect_status t2 on t2.point_no = t1.point_no + <where> + <if test="isEnable != null "> + and t1.is_enable = #{isEnable} + </if> + <if test="collectQuality != null and collectQuality != ''"> + and t2.collect_quality = #{collectQuality} + </if> + <if test="startTime != null"> + and t2.collect_time >= #{startTime} + </if> + <if test="endTime != null"> + and t2.collect_time <= #{endTime} + </if> + </where> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3