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
a15d5e12
Commit
a15d5e12
authored
Aug 21, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 客户添加 创建入口
parent
1a6c98c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
CustomerApiImpl.java
...er/yudao/module/customer/service/api/CustomerApiImpl.java
+4
-0
CustomerServiceImpl.java
...module/customer/service/customer/CustomerServiceImpl.java
+3
-0
CustomerCreateReqVO.java
...o/module/customer/vo/customer/vo/CustomerCreateReqVO.java
+4
-0
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+4
-0
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/api/CustomerApiImpl.java
View file @
a15d5e12
...
@@ -7,6 +7,7 @@ import cn.iocoder.yudao.module.customer.vo.customer.customerContacts.CustomerCon
...
@@ -7,6 +7,7 @@ import cn.iocoder.yudao.module.customer.vo.customer.customerContacts.CustomerCon
import
cn.iocoder.yudao.module.customer.vo.customer.vo.CustomerCreateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.vo.CustomerCreateReqVO
;
import
cn.iocoder.yudao.module.ecw.api.customer.CustomerApi
;
import
cn.iocoder.yudao.module.ecw.api.customer.CustomerApi
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.country.CountryDO
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.country.CountryDO
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerCreateFromEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum
;
import
cn.iocoder.yudao.module.ecw.service.country.CountryService
;
import
cn.iocoder.yudao.module.ecw.service.country.CountryService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -84,6 +85,9 @@ public class CustomerApiImpl implements CustomerApi {
...
@@ -84,6 +85,9 @@ public class CustomerApiImpl implements CustomerApi {
customerCreateReqVO
.
setCustomerOperateLogRemark
(
"会员注册关联创建客户. 会员id:"
+
memberUserId
+
"; 电话:"
+
phone
);
customerCreateReqVO
.
setCustomerOperateLogRemark
(
"会员注册关联创建客户. 会员id:"
+
memberUserId
+
"; 电话:"
+
phone
);
// app创建
customerCreateReqVO
.
setCreateFrom
(
CustomerCreateFromEnum
.
APP_REGISTER
.
getValue
());
customerService
.
createCustomer
(
customerCreateReqVO
);
customerService
.
createCustomer
(
customerCreateReqVO
);
}
}
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/CustomerServiceImpl.java
View file @
a15d5e12
...
@@ -64,6 +64,7 @@ import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankUpdateReqVO;
...
@@ -64,6 +64,7 @@ import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankUpdateReqVO;
import
cn.iocoder.yudao.module.customer.vo.customerDetail.CustomerOrderBackPageVO
;
import
cn.iocoder.yudao.module.customer.vo.customerDetail.CustomerOrderBackPageVO
;
import
cn.iocoder.yudao.module.customer.vo.customerOperateLog.CustomerOperateLogCreateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customerOperateLog.CustomerOperateLogCreateReqVO
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.country.CountryDO
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.country.CountryDO
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerCreateFromEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum
;
import
cn.iocoder.yudao.module.ecw.enums.ErrorCodeConstants
;
import
cn.iocoder.yudao.module.ecw.enums.ErrorCodeConstants
;
...
@@ -262,6 +263,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
...
@@ -262,6 +263,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
customerCreateReqVO
.
setCustomerOperateLogRemark
(
"管理端创建收货人时关联创建客户,进待分配列表"
);
customerCreateReqVO
.
setCustomerOperateLogRemark
(
"管理端创建收货人时关联创建客户,进待分配列表"
);
customerCreateReqVO
.
setCustomerOperateLogOrderNo
(
orderNo
);
customerCreateReqVO
.
setCustomerOperateLogOrderNo
(
orderNo
);
customerCreateReqVO
.
setCreateFrom
(
CustomerCreateFromEnum
.
APP_CONSIGNOR
.
getValue
());
Long
customerId
=
this
.
createCustomer
(
customerCreateReqVO
);
Long
customerId
=
this
.
createCustomer
(
customerCreateReqVO
);
List
<
CustomerContactsDO
>
customerContactsDOS
=
List
<
CustomerContactsDO
>
customerContactsDOS
=
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerCreateReqVO.java
View file @
a15d5e12
...
@@ -173,6 +173,10 @@ public class CustomerCreateReqVO extends CustomerBaseVO {
...
@@ -173,6 +173,10 @@ public class CustomerCreateReqVO extends CustomerBaseVO {
private
String
customerOperateLogOrderNo
;
private
String
customerOperateLogOrderNo
;
@JsonIgnore
private
Integer
createFrom
;
/**
/**
* 是否被订单收货人同步的
* 是否被订单收货人同步的
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
a15d5e12
...
@@ -50,6 +50,7 @@ import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankBackVO;
...
@@ -50,6 +50,7 @@ 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.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.CustomerOperateTypeEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum
;
import
cn.iocoder.yudao.module.ecw.enums.ErrorCodeConstants
;
import
cn.iocoder.yudao.module.ecw.enums.ErrorCodeConstants
;
import
cn.iocoder.yudao.module.ecw.service.busiPwd.BusiPwdService
;
import
cn.iocoder.yudao.module.ecw.service.busiPwd.BusiPwdService
;
...
@@ -239,6 +240,9 @@ public class CustomerController {
...
@@ -239,6 +240,9 @@ public class CustomerController {
}
}
}
}
// 后台创建
createReqVO
.
setCreateFrom
(
CustomerCreateFromEnum
.
BACKEND
.
getValue
());
return
success
(
customerService
.
createCustomer
(
createReqVO
));
return
success
(
customerService
.
createCustomer
(
createReqVO
));
}
}
...
...
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