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
9b4c8d13
Commit
9b4c8d13
authored
May 09, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入公海延期
parent
aebea16b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
CustomerServiceImpl.java
...module/customer/service/customer/CustomerServiceImpl.java
+11
-2
IndirectCustomerServiceImpl.java
...service/indirectCustomer/IndirectCustomerServiceImpl.java
+2
-1
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+1
-0
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/CustomerServiceImpl.java
View file @
9b4c8d13
...
...
@@ -495,7 +495,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
if
(
isFcl
)
{
customerNew
.
setEstimateEnterOpenSeaTime
(
null
);
}
else
{
Date
estimateEnterOpenSeaTime
=
DateUtil
.
offsetMonth
(
now
,
1
).
toJdkDate
();
//Date estimateEnterOpenSeaTime = DateUtil.offsetMonth(now, 1).toJdkDate();
Date
estimateEnterOpenSeaTime
=
DateUtil
.
offsetMonth
(
now
,
3
).
toJdkDate
();
//改为3个月
if
(
customerNew
.
getEstimateEnterOpenSeaTime
()
==
null
||
customerNew
.
getEstimateEnterOpenSeaTime
().
compareTo
(
estimateEnterOpenSeaTime
)
==
-
1
)
{
customerNew
.
setEstimateEnterOpenSeaTime
(
estimateEnterOpenSeaTime
);
}
...
...
@@ -2488,6 +2489,13 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
//捞取后设置预计进入公海池时间
Date
estimateEnterOpenSeaTime
=
isFcl
?
null
:
DateUtil
.
offsetMonth
(
now
,
1
).
toJdkDate
();
if
(!
loginUserId
.
equals
(
customer
.
getCustomerService
())){
//如果捞取新旧客户经理不是同一个,
estimateEnterOpenSeaTime
=
isFcl
?
null
:
DateUtil
.
offsetMonth
(
now
,
3
).
toJdkDate
();
//改为3个月
}
if
(
loginUserId
.
equals
(
customer
.
getCustomerService
())){
//如果捞取新旧客户经理是同一个,且客户的最后一次成交订单归属当前客户经理,延期6个月
}
customerMapper
.
catchCustomer
(
loginUserId
,
estimateEnterOpenSeaTime
,
customerId
);
log
.
info
(
"catchCustomer成功, customerId={}"
,
customer
.
getId
());
...
...
@@ -2552,7 +2560,8 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, Custome
}
//设置预计进行公海池时间
Date
estimateEnterOpenSeaTime
=
DateUtil
.
offsetMonth
(
now
,
1
).
toJdkDate
();
//Date estimateEnterOpenSeaTime = DateUtil.offsetMonth(now, 1).toJdkDate();
Date
estimateEnterOpenSeaTime
=
DateUtil
.
offsetMonth
(
now
,
3
).
toJdkDate
();
if
(
customerDO
.
getEstimateEnterOpenSeaTime
()
==
null
||
customerDO
.
getEstimateEnterOpenSeaTime
().
compareTo
(
estimateEnterOpenSeaTime
)
==
-
1
)
{
customerDO
.
setEstimateEnterOpenSeaTime
(
estimateEnterOpenSeaTime
);
}
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/indirectCustomer/IndirectCustomerServiceImpl.java
View file @
9b4c8d13
...
...
@@ -248,7 +248,8 @@ public class IndirectCustomerServiceImpl extends AbstractService<IndirectCustome
}
//接收后一个月,无任何报价、下单则掉入公海
Date
date
=
DateUtil
.
offsetMonth
(
now
,
1
).
toJdkDate
();
//Date date = DateUtil.offsetMonth(now, 1).toJdkDate();
Date
date
=
DateUtil
.
offsetMonth
(
now
,
3
).
toJdkDate
();
//改为3个月
if
(
customerNew
.
getEstimateEnterOpenSeaTime
()
==
null
||
customerNew
.
getEstimateEnterOpenSeaTime
().
compareTo
(
date
)
==
-
1
)
{
customerNew
.
setEstimateEnterOpenSeaTime
(
date
);
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
9b4c8d13
...
...
@@ -4050,6 +4050,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
if
(
rucangTime
!=
null
)
{
// 若在公海池 且 客户经理不为空,则跳出公海
changeCustomerStatus
(
customerDO
,
rucangTime
,
6
,
CustomerStatusEnum
.
DEAL
);
}
// 若还是入仓中的,则更新为意向
...
...
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