From f0b9fe73049ff873a6da7127c60fd3e4f5b6f212 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 07 八月 2024 09:34:39 +0800 Subject: [PATCH] 点位标签 --- ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml index 446a57b..62acb31 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml @@ -251,7 +251,11 @@ <delete id="deleteTMonitorById" parameterType="Long"> delete from t_monitor - where id = #{id} + <where> + <if test="id !=null"> + id = #{id} + </if> + </where> </delete> <delete id="deleteTMonitorByIds" parameterType="String"> -- Gitblit v1.8.0