Browse Source

修改客户不能添加

training
caoyizhong 2 years ago
parent
commit
241816d0bb
  1. 8
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java

8
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<BasicdataClientM
R<User> 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<BasicdataClientM
isSuccess = basicdataClientUserService.save(basicdataClientUserEntity);
// todo 这里在修改客户的默认联系的人时候需要去更新这个账号的登录账号 目前优先流程
return isSuccess;
}

Loading…
Cancel
Save