mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
📖 CRM:code review 跟进记录
This commit is contained in:
parent
6a6f669c7f
commit
d492daced4
@ -111,4 +111,5 @@ public class CrmClueRespVO {
|
|||||||
@Schema(description = "客户描述", example = "25682")
|
@Schema(description = "客户描述", example = "25682")
|
||||||
@ExcelProperty("客户描述")
|
@ExcelProperty("客户描述")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -318,9 +318,10 @@ public class CrmCustomerServiceImpl implements CrmCustomerService {
|
|||||||
if (poolConfig == null || !poolConfig.getEnabled()) {
|
if (poolConfig == null || !poolConfig.getEnabled()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// 获取没有锁定的不在公海的客户
|
// 1. 获取没有锁定的不在公海的客户
|
||||||
List<CrmCustomerDO> customerList = customerMapper.selectListByLockStatusAndOwnerUserIdNotNull(Boolean.FALSE);
|
List<CrmCustomerDO> customerList = customerMapper.selectListByLockStatusAndOwnerUserIdNotNull(Boolean.FALSE);
|
||||||
List<CrmCustomerDO> poolCustomerList = CollectionUtils.filterList(customerList, customer -> {
|
List<CrmCustomerDO> poolCustomerList = CollectionUtils.filterList(customerList, customer -> {
|
||||||
|
// TODO @puhui999:建议这里作为一个查询条件哈,不放内存里过滤;
|
||||||
// 1.1 未成交放入公海
|
// 1.1 未成交放入公海
|
||||||
if (!customer.getDealStatus()) {
|
if (!customer.getDealStatus()) {
|
||||||
return (poolConfig.getDealExpireDays() - LocalDateTimeUtils.between(customer.getCreateTime())) <= 0;
|
return (poolConfig.getDealExpireDays() - LocalDateTimeUtils.between(customer.getCreateTime())) <= 0;
|
||||||
@ -329,6 +330,8 @@ public class CrmCustomerServiceImpl implements CrmCustomerService {
|
|||||||
LocalDateTime lastTime = ObjUtil.defaultIfNull(customer.getContactLastTime(), customer.getCreateTime());
|
LocalDateTime lastTime = ObjUtil.defaultIfNull(customer.getContactLastTime(), customer.getCreateTime());
|
||||||
return (poolConfig.getContactExpireDays() - LocalDateTimeUtils.between(lastTime)) <= 0;
|
return (poolConfig.getContactExpireDays() - LocalDateTimeUtils.between(lastTime)) <= 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 2. 逐个放入公海
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (CrmCustomerDO customer : poolCustomerList) {
|
for (CrmCustomerDO customer : poolCustomerList) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user