From 9c3db81d5edf53f1878a116ffcfc5dd00022563f Mon Sep 17 00:00:00 2001 From: licc <lichuchuan@jtep.com.cn> Date: Wed, 28 Apr 2021 14:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/AntiFakeMapper.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wisenergy-mapper/src/main/resources/mapper/AntiFakeMapper.xml b/wisenergy-mapper/src/main/resources/mapper/AntiFakeMapper.xml index f8abe2e..5fc68f0 100644 --- a/wisenergy-mapper/src/main/resources/mapper/AntiFakeMapper.xml +++ b/wisenergy-mapper/src/main/resources/mapper/AntiFakeMapper.xml @@ -131,8 +131,9 @@ from <include refid="table"/> <where> + 1=1 <if test="useStatus != null"> - use_status=#{useStatus} + and use_status=#{useStatus} </if> </where> </select> @@ -143,8 +144,9 @@ from <include refid="table"/> <where> + 1=1 <if test="useStatus != null"> - use_status=#{useStatus} + and use_status=#{useStatus} </if> order by create_time desc limit #{startNum},#{endNum} -- 2.18.1