From 25d3f18875e4a4529529302fb7358d3a60b7d98a Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Mon, 28 Aug 2023 15:51:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BB=84=E6=9F=A5=E7=9C=8B=E5=85=B3=E8=81=94?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B2=A1=E6=9C=89=E8=BF=87=E6=BB=A4=E5=B7=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/sdk/mapper/BaseUserMapper.xml | 10 +++++----- .../system/mapper/ExtUserRoleRelationMapper.xml | 15 +++++++-------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseUserMapper.xml b/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseUserMapper.xml index 98c1b990b7..702fc4cd94 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseUserMapper.xml +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseUserMapper.xml @@ -21,13 +21,13 @@ FROM user LEFT JOIN user_extend ON user.id = user_extend.id WHERE (user.email = #{keyword} OR user.id = #{keyword}) - AND deleted IS FALSE + AND deleted = 0 @@ -71,14 +71,14 @@ * FROM user - WHERE DELETED IS FALSE + WHERE DELETED = 0 AND name LIKE CONCAT('%', #{keyword}, '%') OR email LIKE CONCAT('%', #{keyword}, '%') select id, name from user - where deleted is false + where deleted = 0