From b5b8d941f32395cf968cda40852382f2b0614a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=9F=E6=9B=BE=E4=B8=BA=E4=BD=A0=E3=80=81=E5=83=8F?= =?UTF-8?q?=E8=B6=85=E4=BA=BA?= <1553592282@qq.com> Date: Tue, 17 May 2022 02:08:37 +0000 Subject: [PATCH] =?UTF-8?q?update=20ruoyi-system/src/main/resources/mapper?= =?UTF-8?q?/system/SysOperLogMapper.xml.=20=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=E6=9F=A5=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B=E4=B8=BA=E5=85=B6?= =?UTF-8?q?=E4=BB=96=EF=BC=88businessType=20=3D=200=EF=BC=89=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=97=B6=EF=BC=8C=E4=BC=9A=E6=9F=A5=E5=88=B0?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因:当参数为 Integer 类型 0 时,MyBatis 会把 0 当做空字符串处理 --- .../src/main/resources/mapper/system/SysOperLogMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml index 2359a49b..71a9ecb1 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml @@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND title like concat('%', #{title}, '%') - + AND business_type = #{businessType}