From f47934da3ee9cf9fe3c90140ec67854ef0e04590 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期五, 21 十月 2022 16:46:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/huacheng_test' into huacheng_test --- flower_city/src/main/java/com/dg/core/resolvers/CurrentUserMethodArgumentResolver.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/flower_city/src/main/java/com/dg/core/resolvers/CurrentUserMethodArgumentResolver.java b/flower_city/src/main/java/com/dg/core/resolvers/CurrentUserMethodArgumentResolver.java index d323cfa..6b28405 100644 --- a/flower_city/src/main/java/com/dg/core/resolvers/CurrentUserMethodArgumentResolver.java +++ b/flower_city/src/main/java/com/dg/core/resolvers/CurrentUserMethodArgumentResolver.java @@ -54,12 +54,14 @@ } HuaChengSysUser huaChengSysUser=iHuaChengSysUserService.selectData(currentUserId+"","",""); - sysUser=userService.selectData(null,huaChengSysUser.getPhone()); - if(sysUser!=null) + if(huaChengSysUser!=null) { - return sysUser; + sysUser=userService.selectData(null,huaChengSysUser.getPhone()); + if(sysUser!=null) + { + return sysUser; + } } - } return null; // throw new MissingServletRequestPartException(Constant.CURRENT_USER_ID); -- Gitblit v1.7.1