Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
96e2a33f
Commit
96e2a33f
authored
Jan 14, 2025
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug182客户注册,创建人没有赋值
parent
075438d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
CustomerApiImpl.java
...er/yudao/module/customer/service/api/CustomerApiImpl.java
+1
-0
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+10
-4
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/api/CustomerApiImpl.java
View file @
96e2a33f
...
...
@@ -49,6 +49,7 @@ public class CustomerApiImpl implements CustomerApi {
CustomerCreateReqVO
customerCreateReqVO
=
new
CustomerCreateReqVO
();
//初始化名字为手机号
customerCreateReqVO
.
setName
(
newName
);
customerCreateReqVO
.
setFounder
(
memberUserId
);
//普通
customerCreateReqVO
.
setLevel
(
1
);
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
96e2a33f
...
...
@@ -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
());
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment