Commit 96e2a33f authored by honghy's avatar honghy

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

parent 075438d9
......@@ -49,6 +49,7 @@ public class CustomerApiImpl implements CustomerApi {
CustomerCreateReqVO customerCreateReqVO = new CustomerCreateReqVO();
//初始化名字为手机号
customerCreateReqVO.setName(newName);
customerCreateReqVO.setFounder(memberUserId);
//普通
customerCreateReqVO.setLevel(1);
......
......@@ -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.CustomerBankQueryVO;
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.CustomerCreateFromEnum;
import cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum;
......@@ -426,9 +425,16 @@ public class CustomerController {
respVO.setFounderName(user.getNickname() + "(会员)");
}
} else {
AdminUserRespDTO user = adminUserApi.getUser(founder);
if (user != null) {
respVO.setFounderName(user.getNickname());
if (CustomerCreateFromEnum.APP_REGISTER.getValue()==respVO.getCreateFrom()){
UserRespDTO user = memberUserApi.getUser(founder);
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