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;
...@@ -425,6 +424,12 @@ public class CustomerController { ...@@ -425,6 +424,12 @@ public class CustomerController {
if (user != null) { if (user != null) {
respVO.setFounderName(user.getNickname() + "(会员)"); respVO.setFounderName(user.getNickname() + "(会员)");
} }
} else {
if (CustomerCreateFromEnum.APP_REGISTER.getValue()==respVO.getCreateFrom()){
UserRespDTO user = memberUserApi.getUser(founder);
if (user != null) {
respVO.setFounderName(user.getNickname() + "(会员)");
}
} else { } else {
AdminUserRespDTO user = adminUserApi.getUser(founder); AdminUserRespDTO user = adminUserApi.getUser(founder);
if (user != null) { if (user != null) {
...@@ -432,6 +437,7 @@ public class CustomerController { ...@@ -432,6 +437,7 @@ public class CustomerController {
} }
} }
} }
}
if (null != respVO.getPromoter()) { if (null != respVO.getPromoter()) {
CustomerDO customer1 = customerService.getCustomer(respVO.getPromoter()); CustomerDO customer1 = customerService.getCustomer(respVO.getPromoter());
if (null != customer1) { if (null != customer1) {
......
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