From 241816d0bb5b22a8de7c4a4fcded3cedd700f479 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Mon, 28 Aug 2023 13:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BasicdataClientServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java index 808ae76e4..2b221fa25 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java @@ -27,13 +27,16 @@ import com.logpm.basicdata.excel.BasicdataClientExcel; import com.logpm.basicdata.mapper.BasicdataClientMapper; import com.logpm.basicdata.service.*; import com.logpm.basicdata.vo.BasicdataClientVO; +import com.sun.xml.internal.ws.developer.ServerSideException; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springblade.common.constant.DictBizConstant; +import org.springblade.core.log.exception.ServiceException; import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.BeanUtil; +import org.springblade.core.tool.utils.ObjectUtil; import org.springblade.system.cache.DictBizCache; import org.springblade.system.entity.User; import org.springblade.system.feign.IUserClient; @@ -246,7 +249,7 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl r = userClient.userByAccount(AuthUtil.getTenantId(), phone); // 标识这个账户不存在 需要新建 User u = r.getData(); - if (!ObjectUtils.isEmpty(u)) { + if (ObjectUtil.isEmpty(u)) { // 标识这个账户不存在 需要新建 u = new User(); u.setAccount(phone); @@ -276,9 +279,6 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl