dao/src/main/resources/mapper/AirDataMapper.xml
@@ -80,10 +80,10 @@ from pole_binding t1 left join pole t2 on t1.pole_id = t2.id where t1.device_type = 3 t1.pole_id = #{poleId} <if test="userId != null"> and t1.pole_id = #{poleId} <if test="clientId != null"> AND (t2.user_id = #{clientId} OR t2.client_id = #{clientId}) </if> </select> </mapper> </select> </mapper>