Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
haoban3.0
haoban-manage3.0
Commits
3db9a5e6
Commit
3db9a5e6
authored
Jun 13, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "机会人群待建联数"
This reverts commit
38711a29
.
parent
38711a29
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
35 deletions
+10
-35
ContactDataBO.java
.../haoban/manage/service/pojo/bo/contact/ContactDataBO.java
+0
-6
ContactAdaptor.java
...anage/service/service/contact/adaptor/ContactAdaptor.java
+9
-25
HaobanTimerApiServiceImpl.java
...e/service/service/out/impl/HaobanTimerApiServiceImpl.java
+1
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/contact/ContactDataBO.java
View file @
3db9a5e6
...
@@ -28,10 +28,4 @@ public class ContactDataBO {
...
@@ -28,10 +28,4 @@ public class ContactDataBO {
*/
*/
private
Integer
noConnPotCusNum
=
0
;
private
Integer
noConnPotCusNum
=
0
;
/**
* 业务类型
* @see com.gic.haoban.manage.api.enums.content.ShareBizType
*/
private
Integer
bizType
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/adaptor/ContactAdaptor.java
View file @
3db9a5e6
...
@@ -23,7 +23,6 @@ import com.gic.haoban.app.customer.dto.contact.ContactParamDTO;
...
@@ -23,7 +23,6 @@ import com.gic.haoban.app.customer.dto.contact.ContactParamDTO;
import
com.gic.haoban.app.customer.dto.contact.ContactSumDTO
;
import
com.gic.haoban.app.customer.dto.contact.ContactSumDTO
;
import
com.gic.haoban.app.customer.service.api.service.CustomerApiService
;
import
com.gic.haoban.app.customer.service.api.service.CustomerApiService
;
import
com.gic.haoban.common.utils.DateUtil
;
import
com.gic.haoban.common.utils.DateUtil
;
import
com.gic.haoban.manage.api.enums.contact.ContactBizTypeEnum
;
import
com.gic.haoban.manage.service.dao.mapper.content.holo.HoloDataSource
;
import
com.gic.haoban.manage.service.dao.mapper.content.holo.HoloDataSource
;
import
com.gic.haoban.manage.service.pojo.bo.contact.ContactDataBO
;
import
com.gic.haoban.manage.service.pojo.bo.contact.ContactDataBO
;
import
com.gic.store.goods.dto.potential.PlatformPotentialCustomerOutDTO
;
import
com.gic.store.goods.dto.potential.PlatformPotentialCustomerOutDTO
;
...
@@ -59,10 +58,10 @@ public class ContactAdaptor {
...
@@ -59,10 +58,10 @@ public class ContactAdaptor {
/**
/**
* 潜客商户定时刷新
* 潜客商户定时刷新
*/
*/
public
void
contactDataTimer
(
Integer
bizType
,
String
rightMenuCode
)
{
public
void
contactDataTimer
()
{
// 处理潜客相关企业ID
// 处理潜客相关企业ID
ServiceResponse
<
List
<
EnterpriseUsingStatusDTO
>>
serviceResponse
=
ServiceResponse
<
List
<
EnterpriseUsingStatusDTO
>>
serviceResponse
=
enterpriseUseForbidService
.
getUseEnterpriseByCode
(
rightMenuCode
,
null
);
enterpriseUseForbidService
.
getUseEnterpriseByCode
(
EnterpriseServiceEnum
.
POTENTIAL
.
getRightMenuCode
()
,
null
);
List
<
ContactDataBO
>
list
=
new
ArrayList
<>();
List
<
ContactDataBO
>
list
=
new
ArrayList
<>();
List
<
String
>
eidList
=
Optional
.
ofNullable
(
serviceResponse
.
getResult
()).
orElse
(
Collections
.
emptyList
())
List
<
String
>
eidList
=
Optional
.
ofNullable
(
serviceResponse
.
getResult
()).
orElse
(
Collections
.
emptyList
())
.
stream
()
.
stream
()
...
@@ -80,7 +79,7 @@ public class ContactAdaptor {
...
@@ -80,7 +79,7 @@ public class ContactAdaptor {
for
(
int
i
=
0
;
i
<
enterpriseClerk
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
enterpriseClerk
.
size
();
i
++)
{
ClerkListDTO
clerk
=
enterpriseClerk
.
get
(
i
);
ClerkListDTO
clerk
=
enterpriseClerk
.
get
(
i
);
// 无归属导购数据
// 无归属导购数据
if
(
storeIdSet
.
add
(
clerk
.
getStoreId
())
&&
Objects
.
equals
(
bizType
,
ContactBizTypeEnum
.
POTENTIAL_CUSTOMER
.
getType
())
)
{
if
(
storeIdSet
.
add
(
clerk
.
getStoreId
()))
{
contactDataBO
=
new
ContactDataBO
();
contactDataBO
=
new
ContactDataBO
();
contactDataBO
.
setEnterpriseId
(
clerk
.
getEnterpriseId
());
contactDataBO
.
setEnterpriseId
(
clerk
.
getEnterpriseId
());
contactDataBO
.
setClerkId
(
"-1"
);
contactDataBO
.
setClerkId
(
"-1"
);
...
@@ -91,7 +90,6 @@ public class ContactAdaptor {
...
@@ -91,7 +90,6 @@ public class ContactAdaptor {
contactDataBO
.
setEnterpriseId
(
clerk
.
getEnterpriseId
());
contactDataBO
.
setEnterpriseId
(
clerk
.
getEnterpriseId
());
contactDataBO
.
setClerkId
(
clerk
.
getClerkId
());
contactDataBO
.
setClerkId
(
clerk
.
getClerkId
());
contactDataBO
.
setStoreId
(
clerk
.
getStoreId
());
contactDataBO
.
setStoreId
(
clerk
.
getStoreId
());
contactDataBO
.
setBizType
(
bizType
);
list
.
add
(
contactDataBO
);
list
.
add
(
contactDataBO
);
if
(
list
.
size
()
>=
100
||
i
==
enterpriseClerk
.
size
()
-
1
)
{
if
(
list
.
size
()
>=
100
||
i
==
enterpriseClerk
.
size
()
-
1
)
{
try
{
try
{
...
@@ -118,14 +116,9 @@ public class ContactAdaptor {
...
@@ -118,14 +116,9 @@ public class ContactAdaptor {
}
}
ContactDataBO
contactDataBO
=
list
.
get
(
0
);
ContactDataBO
contactDataBO
=
list
.
get
(
0
);
String
enterpriseId
=
contactDataBO
.
getEnterpriseId
();
String
enterpriseId
=
contactDataBO
.
getEnterpriseId
();
Integer
bizType
=
contactDataBO
.
getBizType
();
ServiceResponse
<
PlatformPotentialCustomerOutDTO
>
potentialResponse
=
platformPotentialCustomerApiService
.
getPotentialCustomerOutRule
(
enterpriseId
);
PlatformPotentialCustomerOutDTO
result
=
null
;
if
(!
potentialResponse
.
isSuccess
()
||
potentialResponse
.
getResult
()
==
null
)
{
if
(
Objects
.
equals
(
bizType
,
ContactBizTypeEnum
.
POTENTIAL_CUSTOMER
.
getType
()))
{
return
;
ServiceResponse
<
PlatformPotentialCustomerOutDTO
>
potentialResponse
=
platformPotentialCustomerApiService
.
getPotentialCustomerOutRule
(
enterpriseId
);
if
(!
potentialResponse
.
isSuccess
()
||
potentialResponse
.
getResult
()
==
null
)
{
return
;
}
result
=
potentialResponse
.
getResult
();
}
}
List
<
String
>
clerkIdList
=
list
.
stream
().
map
(
ContactDataBO:
:
getClerkId
).
collect
(
Collectors
.
toList
());
List
<
String
>
clerkIdList
=
list
.
stream
().
map
(
ContactDataBO:
:
getClerkId
).
collect
(
Collectors
.
toList
());
List
<
ClerkDTO
>
clerkDTOS
=
clerkService
.
getClerkByClerkIds
(
new
HashSet
<>(
clerkIdList
));
List
<
ClerkDTO
>
clerkDTOS
=
clerkService
.
getClerkByClerkIds
(
new
HashSet
<>(
clerkIdList
));
...
@@ -133,7 +126,7 @@ public class ContactAdaptor {
...
@@ -133,7 +126,7 @@ public class ContactAdaptor {
for
(
ContactDataBO
dataBO
:
list
)
{
for
(
ContactDataBO
dataBO
:
list
)
{
boolean
unassigned
=
Objects
.
equals
(
dataBO
.
getClerkId
(),
"-1"
);
boolean
unassigned
=
Objects
.
equals
(
dataBO
.
getClerkId
(),
"-1"
);
ClerkDTO
clerkDTO
=
clerkMap
.
get
(
dataBO
.
getClerkId
());
ClerkDTO
clerkDTO
=
clerkMap
.
get
(
dataBO
.
getClerkId
());
Integer
noConnPotCusNum
=
getNoConnPotCusNum
(
result
,
dataBO
.
getEnterpriseId
(),
dataBO
.
getStoreId
(),
clerkDTO
,
bizType
,
unassigned
);
Integer
noConnPotCusNum
=
getNoConnPotCusNum
(
potentialResponse
.
getResult
(),
dataBO
.
getEnterpriseId
(),
dataBO
.
getStoreId
(),
clerkDTO
,
unassigned
);
log
.
info
(
"clerkId:{},noConnPotCusNum:{}"
,
dataBO
.
getClerkId
(),
noConnPotCusNum
);
log
.
info
(
"clerkId:{},noConnPotCusNum:{}"
,
dataBO
.
getClerkId
(),
noConnPotCusNum
);
dataBO
.
setNoConnPotCusNum
(
noConnPotCusNum
);
dataBO
.
setNoConnPotCusNum
(
noConnPotCusNum
);
}
}
...
@@ -155,7 +148,6 @@ public class ContactAdaptor {
...
@@ -155,7 +148,6 @@ public class ContactAdaptor {
temp
.
setObject
(
"store_id"
,
item
.
getStoreId
());
temp
.
setObject
(
"store_id"
,
item
.
getStoreId
());
temp
.
setObject
(
"clerk_id"
,
item
.
getClerkId
());
temp
.
setObject
(
"clerk_id"
,
item
.
getClerkId
());
temp
.
setObject
(
"no_conn_pot_cus_num"
,
item
.
getNoConnPotCusNum
());
temp
.
setObject
(
"no_conn_pot_cus_num"
,
item
.
getNoConnPotCusNum
());
temp
.
setObject
(
"biz_type"
,
bizType
);
// 时间戳格式不行
// 时间戳格式不行
temp
.
setObject
(
"create_time"
,
DateUtil
.
dateToStr
(
new
Date
(),
"yyyy-MM-dd HH:mm:ss"
));
temp
.
setObject
(
"create_time"
,
DateUtil
.
dateToStr
(
new
Date
(),
"yyyy-MM-dd HH:mm:ss"
));
return
temp
;
return
temp
;
...
@@ -168,7 +160,7 @@ public class ContactAdaptor {
...
@@ -168,7 +160,7 @@ public class ContactAdaptor {
}
}
}
}
public
Integer
getNoConnPotCusNum
(
PlatformPotentialCustomerOutDTO
result
,
String
enterpriseId
,
String
storeId
,
ClerkDTO
clerkDTO
,
Integer
bizType
,
boolean
unassigned
)
{
public
Integer
getNoConnPotCusNum
(
PlatformPotentialCustomerOutDTO
result
,
String
enterpriseId
,
String
storeId
,
ClerkDTO
clerkDTO
,
boolean
unassigned
)
{
if
(
StringUtils
.
isBlank
(
storeId
)
&&
clerkDTO
==
null
)
{
if
(
StringUtils
.
isBlank
(
storeId
)
&&
clerkDTO
==
null
)
{
return
0
;
return
0
;
}
}
...
@@ -184,22 +176,14 @@ public class ContactAdaptor {
...
@@ -184,22 +176,14 @@ public class ContactAdaptor {
}
}
}
}
ContactParamDTO
contact
=
new
ContactParamDTO
();
ContactParamDTO
contact
=
new
ContactParamDTO
();
if
(
result
!=
null
)
{
contact
.
setRuleJSON
(
JSON
.
toJSONString
(
result
));
contact
.
setRuleJSON
(
JSON
.
toJSONString
(
result
));
}
contact
.
setContactType
(
0
);
contact
.
setContactType
(
0
);
contact
.
setBizType
(
bizType
);
params
.
setStoreId
(
storeId
);
params
.
setStoreId
(
storeId
);
params
.
setClerkId
(
clerkId
);
params
.
setClerkId
(
clerkId
);
params
.
setClerkType
(
clerkTypeStr
);
params
.
setClerkType
(
clerkTypeStr
);
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setContactParamDTO
(
contact
);
params
.
setContactParamDTO
(
contact
);
MemberInfoListParamsDTO
memberInfoListParamsDTO
=
new
MemberInfoListParamsDTO
();
MemberInfoListParamsDTO
memberInfoListParamsDTO
=
new
MemberInfoListParamsDTO
();
if
(
Objects
.
equals
(
bizType
,
ContactBizTypeEnum
.
OPPORTUNITY_CUSTOMER
.
getType
()))
{
memberInfoListParamsDTO
.
setCrowdClerkId
(
clerkId
);
memberInfoListParamsDTO
.
setCrowdType
(-
1
);
memberInfoListParamsDTO
.
setMemberType
(
4
);
}
// 查询无归属数据
// 查询无归属数据
if
(
unassigned
)
{
if
(
unassigned
)
{
FilterListDTO
filterListDTO
=
new
FilterListDTO
();
FilterListDTO
filterListDTO
=
new
FilterListDTO
();
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HaobanTimerApiServiceImpl.java
View file @
3db9a5e6
...
@@ -2,9 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
...
@@ -2,9 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.haoban.manage.api.dto.CommonDataMQDTO
;
import
com.gic.haoban.manage.api.dto.CommonDataMQDTO
;
import
com.gic.haoban.manage.api.enums.contact.ContactBizTypeEnum
;
import
com.gic.haoban.manage.api.service.HaobanCommonMQApiService
;
import
com.gic.haoban.manage.api.service.HaobanCommonMQApiService
;
import
com.gic.haoban.manage.api.service.HaobanTimerApiService
;
import
com.gic.haoban.manage.api.service.HaobanTimerApiService
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanExternalClerkRelatedMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanExternalClerkRelatedMapper
;
...
@@ -214,7 +212,6 @@ public class HaobanTimerApiServiceImpl implements HaobanTimerApiService {
...
@@ -214,7 +212,6 @@ public class HaobanTimerApiServiceImpl implements HaobanTimerApiService {
@Override
@Override
public
void
contactDataTimer
(
String
params
)
{
public
void
contactDataTimer
(
String
params
)
{
contactAdaptor
.
contactDataTimer
(
ContactBizTypeEnum
.
POTENTIAL_CUSTOMER
.
getType
(),
EnterpriseServiceEnum
.
POTENTIAL
.
getRightMenuCode
());
contactAdaptor
.
contactDataTimer
();
contactAdaptor
.
contactDataTimer
(
ContactBizTypeEnum
.
OPPORTUNITY_CUSTOMER
.
getType
(),
EnterpriseServiceEnum
.
OBJECTIVES
.
getRightMenuCode
());
}
}
}
}
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