From e9d0b9bc25631a211a206c5ae7d67dcbc2adb6aa Mon Sep 17 00:00:00 2001 From: lijiarao Date: Tue, 9 Jan 2024 14:16:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=2079842=20=E8=BD=A6=E5=9E=8B=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=BA=93=E8=AF=A6=E6=83=85-=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=EF=BC=8C=E9=80=89=E6=8B=A9=E9=A1=B9=E7=9B=AE=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B2=A1=E6=9C=89=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jero/config/mybatis/MybatisInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laws-base/laws-base-core/src/main/java/com/jero/config/mybatis/MybatisInterceptor.java b/laws-base/laws-base-core/src/main/java/com/jero/config/mybatis/MybatisInterceptor.java index 0a078665..2ee2da4e 100644 --- a/laws-base/laws-base-core/src/main/java/com/jero/config/mybatis/MybatisInterceptor.java +++ b/laws-base/laws-base-core/src/main/java/com/jero/config/mybatis/MybatisInterceptor.java @@ -137,7 +137,7 @@ public class MybatisInterceptor implements Interceptor { if (localDelFlag == null || "".equals(localDelFlag)) { // 登录人账号 ReflectionUtils.makeAccessible(field); - ReflectionUtils.setField(field,parameter,0); + ReflectionUtils.setField(field,parameter, field.getType() == String.class ? "0" : 0); } } } catch (Exception e) {