1.app远程接口添加
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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 <= #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY
|
||||
my_index
|
||||
HAVING
|
||||
allCount >0
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user