From e60bad3640cdade446b8d7ba3ab13ee22fb79b05 Mon Sep 17 00:00:00 2001 From: cjl <276999030@qq.com> Date: Wed, 10 Jan 2024 08:49:01 +0800 Subject: [PATCH] fix:立行立改经纬度必填 --- screen-api/src/main/resources/mapper/HistoryHourlyMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/screen-api/src/main/resources/mapper/HistoryHourlyMapper.xml b/screen-api/src/main/resources/mapper/HistoryHourlyMapper.xml index fbb6c7e..9e3acd3 100644 --- a/screen-api/src/main/resources/mapper/HistoryHourlyMapper.xml +++ b/screen-api/src/main/resources/mapper/HistoryHourlyMapper.xml @@ -50,6 +50,12 @@ <foreach item="monitorPointId" collection="monitorPointIds" index="index" open="(" separator="," close=")"> #{monitorPointId} </foreach> + <if test="macs != null and macs.size!= 0"> + and h.mac in + <foreach collection="macs" item="id" index="index" open="(" close=")" separator=","> + #{id} + </foreach> + </if> AND h.time = #{time} </select> -- Gitblit v1.8.0