Commit e8c9ede2 authored by honghy's avatar honghy Committed by wux

bug182客户注册,创建人没有赋值

parent ac875b79
...@@ -48,6 +48,7 @@ public class CustomerApiImpl implements CustomerApi { ...@@ -48,6 +48,7 @@ public class CustomerApiImpl implements CustomerApi {
CustomerCreateReqVO customerCreateReqVO = new CustomerCreateReqVO(); CustomerCreateReqVO customerCreateReqVO = new CustomerCreateReqVO();
//初始化名字为手机号 //初始化名字为手机号
customerCreateReqVO.setName(newName); customerCreateReqVO.setName(newName);
customerCreateReqVO.setFounder(memberUserId);
//普通 //普通
customerCreateReqVO.setLevel(1); customerCreateReqVO.setLevel(1);
......
...@@ -43,7 +43,6 @@ import cn.iocoder.yudao.module.customer.vo.customer.vo.*; ...@@ -43,7 +43,6 @@ import cn.iocoder.yudao.module.customer.vo.customer.vo.*;
import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankBackVO; import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankBackVO;
import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankQueryVO; import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankQueryVO;
import cn.iocoder.yudao.module.ecw.api.paramValid.ParamValidatorApi; import cn.iocoder.yudao.module.ecw.api.paramValid.ParamValidatorApi;
import cn.iocoder.yudao.module.ecw.controller.admin.region.vo.RegionRespVO;
import cn.iocoder.yudao.module.ecw.enums.CustomerContactsDefaultEnum; import cn.iocoder.yudao.module.ecw.enums.CustomerContactsDefaultEnum;
import cn.iocoder.yudao.module.ecw.enums.CustomerCreateFromEnum; import cn.iocoder.yudao.module.ecw.enums.CustomerCreateFromEnum;
import cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum; import cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum;
...@@ -426,9 +425,16 @@ public class CustomerController { ...@@ -426,9 +425,16 @@ public class CustomerController {
respVO.setFounderName(user.getNickname() + "(会员)"); respVO.setFounderName(user.getNickname() + "(会员)");
} }
} else { } else {
AdminUserRespDTO user = adminUserApi.getUser(founder); if (CustomerCreateFromEnum.APP_REGISTER.getValue()==respVO.getCreateFrom()){
if (user != null) { UserRespDTO user = memberUserApi.getUser(founder);
respVO.setFounderName(user.getNickname()); if (user != null) {
respVO.setFounderName(user.getNickname() + "(会员)");
}
} else {
AdminUserRespDTO user = adminUserApi.getUser(founder);
if (user != null) {
respVO.setFounderName(user.getNickname());
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment