From b9a55925e492dcd02d6b8268797b0a02136cf3a7 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 28 十一月 2024 14:52:51 +0800 Subject: [PATCH] 修改查询升级结果的sql语句中的bug --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml index 8b782c1..9c12100 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/UgRtuControllerMapper.xml @@ -131,10 +131,10 @@ <if test="taskId != null"> AND ugCon.task_id = #{taskId,jdbcType=BIGINT} </if> - <if test="intakeNum != null"> + <if test="intakeNum != null and intakeNum != ''"> AND inta.name = #{intakeNum,jdbcType=VARCHAR} </if> - <if test="rtuAddr != null"> + <if test="rtuAddr != null and rtuAddr != ''"> AND ugCon.rtu_addr = #{rtuAddr,jdbcType=VARCHAR} </if> <if test="state != null and state == 1"> @@ -164,10 +164,10 @@ <if test="taskId != null"> AND ugCon.task_id = #{taskId,jdbcType=BIGINT} </if> - <if test="intakeNum != null"> + <if test="intakeNum != null and intakeNum != ''"> AND inta.name = #{intakeNum,jdbcType=VARCHAR} </if> - <if test="rtuAddr != null"> + <if test="rtuAddr != null and rtuAddr != ''"> AND ugCon.rtu_addr = #{rtuAddr,jdbcType=VARCHAR} </if> <if test="state != null and state == 1"> -- Gitblit v1.8.0