From 773c1d40e9081d8eed0c4da2fe5c8201df57f918 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 07 Aug 2024 16:25:43 +0800
Subject: [PATCH] sql 输入 1=1 返回正常的结果问题处理
---
src/main/java/org/springblade/modules/backblast/mapper/BackblastPubRecordMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/springblade/modules/backblast/mapper/BackblastPubRecordMapper.xml b/src/main/java/org/springblade/modules/backblast/mapper/BackblastPubRecordMapper.xml
index 87d7359..8fc65cb 100644
--- a/src/main/java/org/springblade/modules/backblast/mapper/BackblastPubRecordMapper.xml
+++ b/src/main/java/org/springblade/modules/backblast/mapper/BackblastPubRecordMapper.xml
@@ -28,7 +28,7 @@
and br.town_name like concat('%',#{backblastPubRecord.townName},'%')
</if>
<if test="backblastPubRecord.communityName != null and backblastPubRecord.communityName != ''">
- and jbr.name like concat('%',#{backblastPubRecord.communityName},'%')
+ and br.name like concat('%',#{backblastPubRecord.communityName},'%')
</if>
<if test="backblastPubRecord.pcsName != null and backblastPubRecord.pcsName != ''">
and jpag.pcs_name like concat('%',#{backblastPubRecord.pcsName},'%')
@@ -164,7 +164,7 @@
and br.town_name like concat('%',#{backblastPubRecord.townName},'%')
</if>
<if test="backblastPubRecord.communityName != null and backblastPubRecord.communityName != ''">
- and jbr.name like concat('%',#{backblastPubRecord.communityName},'%')
+ and br.name like concat('%',#{backblastPubRecord.communityName},'%')
</if>
<if test="backblastPubRecord.pcsName != null and backblastPubRecord.pcsName != ''">
and jpag.pcs_name like concat('%',#{backblastPubRecord.pcsName},'%')
@@ -210,7 +210,7 @@
and br.town_name like concat('%',#{backblastPubRecord.townName},'%')
</if>
<if test="backblastPubRecord.communityName != null and backblastPubRecord.communityName != ''">
- and jbr.name like concat('%',#{backblastPubRecord.communityName},'%')
+ and br.name like concat('%',#{backblastPubRecord.communityName},'%')
</if>
<if test="backblastPubRecord.pcsName != null and backblastPubRecord.pcsName != ''">
and jpag.pcs_name like concat('%',#{backblastPubRecord.pcsName},'%')
--
Gitblit v1.9.3