1.app远程接口添加

This commit is contained in:
wr
2023-11-17 16:09:43 +08:00
parent bf6aec0f24
commit 56cb0bc38a
16 changed files with 161 additions and 17 deletions

View File

@@ -47,4 +47,13 @@ public interface RStatLimitTargetDMapper extends BaseMapper<RStatLimitTargetDPO>
Integer getSumAddI(@Param("ids") List<String> list,
@Param("startTime") String startTime,
@Param("endTime") String endTime);
/**
* 获取越线监测点
* @return
*/
List<String> getLinesTarget(@Param("ids") List<String> ids,
@Param("startTime") String startTime,
@Param("endTime") String endTime);
}

View File

@@ -231,4 +231,28 @@
</if>
</where>
</select>
<select id="getLinesTarget" resultType="java.lang.String">
SELECT
my_index
FROM
r_stat_limit_target_d
<where>
<if test=" ids != null and ids.size > 0">
AND my_index IN
<foreach collection='ids' item='item' index="index" open='(' separator=',' close=')'>
#{item}
</foreach>
</if>
<if test=" startTime != null and startTime !=''">
AND time_id >= #{startTime}
</if>
<if test="endTime != null and endTime != ''">
AND time_id &lt;= #{endTime}
</if>
</where>
GROUP BY
my_index
HAVING
allCount >0
</select>
</mapper>