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
7d3eb1f2
Commit
7d3eb1f2
authored
Aug 23, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 客户的同行或代理业务由type转移到roles
parent
5825fdf5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
CustomerServiceImpl.java
...module/customer/service/customer/CustomerServiceImpl.java
+2
-2
MemberRegListener.java
...ocoder/yudao/module/order/listener/MemberRegListener.java
+2
-2
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+3
-3
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/CustomerServiceImpl.java
View file @
7d3eb1f2
...
@@ -208,8 +208,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
...
@@ -208,8 +208,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
customerService
=
consignorCustomerDO
.
getCustomerService
();
customerService
=
consignorCustomerDO
.
getCustomerService
();
// 待分配。 若是发货人为代理和同行时,订单的收货人不同步到待分配客户
// 待分配。 若是发货人为代理和同行时,订单的收货人不同步到待分配客户
boolean
isProxyConsignor
=
StringUtils
.
isNotEmpty
(
consignorCustomerDO
.
get
Type
())
boolean
isProxyConsignor
=
StringUtils
.
isNotEmpty
(
consignorCustomerDO
.
get
Roles
())
&&
(
consignorCustomerDO
.
get
Type
().
contains
(
"2"
)
||
consignorCustomerDO
.
getType
().
contains
(
"3"
));
&&
(
consignorCustomerDO
.
get
Roles
().
contains
(
"2"
)
||
consignorCustomerDO
.
getRoles
().
contains
(
"3"
));
if
(
isProxyConsignor
)
{
if
(
isProxyConsignor
)
{
log
.
info
(
"若是发货人为代理和同行时,订单的收货人不同步到待分配客户"
);
log
.
info
(
"若是发货人为代理和同行时,订单的收货人不同步到待分配客户"
);
return
null
;
return
null
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/listener/MemberRegListener.java
View file @
7d3eb1f2
...
@@ -120,8 +120,8 @@ public class MemberRegListener {
...
@@ -120,8 +120,8 @@ public class MemberRegListener {
OrderConsignorDO
orderConsignorByOrderId
=
orderConsignorService
.
getOrderConsignorByOrderId
(
orderId
);
OrderConsignorDO
orderConsignorByOrderId
=
orderConsignorService
.
getOrderConsignorByOrderId
(
orderId
);
if
(
orderConsignorByOrderId
!=
null
&&
orderConsignorByOrderId
.
getCustomerId
()
!=
null
)
{
if
(
orderConsignorByOrderId
!=
null
&&
orderConsignorByOrderId
.
getCustomerId
()
!=
null
)
{
CustomerDO
orderConsignorCustomer
=
customerService
.
getCustomer
(
orderConsignorByOrderId
.
getCustomerId
());
CustomerDO
orderConsignorCustomer
=
customerService
.
getCustomer
(
orderConsignorByOrderId
.
getCustomerId
());
if
(
orderConsignorCustomer
!=
null
&&
StringUtils
.
isNotEmpty
(
orderConsignorCustomer
.
get
Type
())
if
(
orderConsignorCustomer
!=
null
&&
StringUtils
.
isNotEmpty
(
orderConsignorCustomer
.
get
Roles
())
&&
!
orderConsignorCustomer
.
get
Type
().
contains
(
"2"
)
&&
!
orderConsignorCustomer
.
getType
().
contains
(
"3"
))
{
&&
!
orderConsignorCustomer
.
get
Roles
().
contains
(
"2"
)
&&
!
orderConsignorCustomer
.
getRoles
().
contains
(
"3"
))
{
//设置为发货人的客户经理
//设置为发货人的客户经理
orderConsigneeCustomer
.
setCustomerService
(
orderConsignorCustomer
.
getCustomerService
());
orderConsigneeCustomer
.
setCustomerService
(
orderConsignorCustomer
.
getCustomerService
());
orderConsigneeCustomer
.
setConsigneeFirstCustomerService
(
orderConsignorCustomer
.
getCustomerService
());
orderConsigneeCustomer
.
setConsigneeFirstCustomerService
(
orderConsignorCustomer
.
getCustomerService
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
7d3eb1f2
...
@@ -418,9 +418,9 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -418,9 +418,9 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
customerService
.
getCustomer
(
orderConsignorDO
.
getCustomerId
());
customerService
.
getCustomer
(
orderConsignorDO
.
getCustomerId
());
// 发货人不是代理或同行
// 发货人不是代理或同行
if
(
orderConsignorCustomer
!=
null
&&
if
(
orderConsignorCustomer
!=
null
&&
StringUtils
.
isNotEmpty
(
orderConsignorCustomer
.
get
Type
())
StringUtils
.
isNotEmpty
(
orderConsignorCustomer
.
get
Roles
())
&&
!
orderConsignorCustomer
.
get
Type
().
contains
(
"2"
)
&&
&&
!
orderConsignorCustomer
.
get
Roles
().
contains
(
"2"
)
&&
!
orderConsignorCustomer
.
get
Type
().
contains
(
"3"
))
{
!
orderConsignorCustomer
.
get
Roles
().
contains
(
"3"
))
{
// 收货人信息
// 收货人信息
OrderConsigneeDO
orderConsigneeDO
=
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOrderConsigneeByOrderId
(
orderId
);
orderConsigneeService
.
getOrderConsigneeByOrderId
(
orderId
);
...
...
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