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
68ef9ea3
Commit
68ef9ea3
authored
Jun 11, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机会人群建联校验
parent
09375e00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
ContactLogServiceImpl.java
...e/service/service/contact/impl/ContactLogServiceImpl.java
+15
-8
ContactOrderApiServiceImpl.java
.../service/out/impl/contact/ContactOrderApiServiceImpl.java
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/impl/ContactLogServiceImpl.java
View file @
68ef9ea3
...
@@ -108,30 +108,37 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -108,30 +108,37 @@ public class ContactLogServiceImpl implements ContactLogService {
params
.
setStoreId
(
storeId
);
params
.
setStoreId
(
storeId
);
params
.
setClerkId
(
clerkId
);
params
.
setClerkId
(
clerkId
);
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setEnterpriseId
(
enterpriseId
);
if
(
Objects
.
equals
(
bizType
,
ContactBizTypeEnum
.
POTENTIAL_CUSTOMER
.
getType
()))
{
if
(
bizType
!=
null
)
{
return
checkPotential
(
memberId
,
params
);
return
checkPotential
(
memberId
,
params
,
bizType
);
}
else
if
(
Objects
.
equals
(
bizType
,
ContactBizTypeEnum
.
OPPORTUNITY_CUSTOMER
.
getType
()))
{
// todo 机会人群是否能建联
}
else
{
}
else
{
boolean
checkPotential
=
checkPotential
(
memberId
,
params
);
boolean
checkPotential
=
checkPotential
(
memberId
,
params
,
ContactBizTypeEnum
.
POTENTIAL_CUSTOMER
.
getType
());
if
(
checkPotential
)
{
return
true
;
}
checkPotential
=
checkPotential
(
memberId
,
params
,
ContactBizTypeEnum
.
OPPORTUNITY_CUSTOMER
.
getType
());
if
(
checkPotential
)
{
if
(
checkPotential
)
{
return
true
;
return
true
;
}
}
// todo 机会人群是否能建联
}
}
return
false
;
return
false
;
}
}
private
boolean
checkPotential
(
String
memberId
,
CustomerDTO
params
)
{
private
boolean
checkPotential
(
String
memberId
,
CustomerDTO
params
,
Integer
bizType
)
{
boolean
hasRight
=
enterpriseAdaptor
.
checkEnterpriseHasRightByContactBizType
(
params
.
getEnterpriseId
(),
ContactBizTypeEnum
.
POTENTIAL_CUSTOMER
.
getType
()
);
boolean
hasRight
=
enterpriseAdaptor
.
checkEnterpriseHasRightByContactBizType
(
params
.
getEnterpriseId
(),
bizType
);
if
(!
hasRight
)
{
if
(!
hasRight
)
{
return
false
;
return
false
;
}
}
ContactParamDTO
contact
=
new
ContactParamDTO
();
ContactParamDTO
contact
=
new
ContactParamDTO
();
// 搜索信息
// 搜索信息
MemberInfoListParamsDTO
memberInfoListParamsDTO
=
com
.
gic
.
haoban
.
common
.
utils
.
StringUtil
.
getBean
(
"{}"
,
MemberInfoListParamsDTO
.
class
);
MemberInfoListParamsDTO
memberInfoListParamsDTO
=
com
.
gic
.
haoban
.
common
.
utils
.
StringUtil
.
getBean
(
"{}"
,
MemberInfoListParamsDTO
.
class
);
if
(
Objects
.
equals
(
bizType
,
ContactBizTypeEnum
.
OPPORTUNITY_CUSTOMER
.
getType
()))
{
memberInfoListParamsDTO
.
setCrowdClerkId
(
params
.
getClerkId
());
memberInfoListParamsDTO
.
setCrowdType
(-
1
);
memberInfoListParamsDTO
.
setMemberType
(-
1
);
}
memberInfoListParamsDTO
.
setMemberId
(
memberId
);
memberInfoListParamsDTO
.
setMemberId
(
memberId
);
contact
.
setContactType
(
0
);
contact
.
setContactType
(
0
);
contact
.
setBizType
(
bizType
);
params
.
setContactParamDTO
(
contact
);
params
.
setContactParamDTO
(
contact
);
ServiceResponse
<
ContactSumDTO
>
noContactResponse
=
customerApiService
.
contactMemberSum
(
new
BasePageInfo
(),
params
,
memberInfoListParamsDTO
);
ServiceResponse
<
ContactSumDTO
>
noContactResponse
=
customerApiService
.
contactMemberSum
(
new
BasePageInfo
(),
params
,
memberInfoListParamsDTO
);
if
(
noContactResponse
.
isSuccess
()
&&
noContactResponse
.
getResult
()
!=
null
)
{
if
(
noContactResponse
.
isSuccess
()
&&
noContactResponse
.
getResult
()
!=
null
)
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/contact/ContactOrderApiServiceImpl.java
View file @
68ef9ea3
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.constants.Manage3Constants
;
import
com.gic.haoban.manage.api.dto.contact.ContactOrderDetailDTO
;
import
com.gic.haoban.manage.api.dto.contact.ContactOrderDetailDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactOrderQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactOrderQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactOrderSearchQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactOrderSearchQDTO
;
...
@@ -47,7 +48,7 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
...
@@ -47,7 +48,7 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
}
}
OrderInfoResp
result
=
serviceResponse
.
getResult
();
OrderInfoResp
result
=
serviceResponse
.
getResult
();
boolean
clearFlag
=
CollectionUtils
.
isNotEmpty
(
result
.
getOrderItems
())
&&
result
.
getPaidAmount
()
>
0
boolean
clearFlag
=
CollectionUtils
.
isNotEmpty
(
result
.
getOrderItems
())
&&
result
.
getPaidAmount
()
>
0
&&
(
result
.
getReceiptsDate
()
!=
null
&&
DateUtil
.
compare
(
DateUtil
.
offsetDay
(
new
Date
(),
-
14
),
result
.
getReceiptsDate
())
<=
0
);
&&
(
result
.
getReceiptsDate
()
!=
null
&&
DateUtil
.
compare
(
DateUtil
.
offsetDay
(
new
Date
(),
-
Manage3Constants
.
CONTACT_ORDER_LIMIT_DAY
),
result
.
getReceiptsDate
())
<=
0
);
log
.
info
(
"获取订单时间,orderId:{},单据时间:{},应收:{}"
,
result
.
getOrderId
(),
result
.
getReceiptsDate
(),
result
.
getPaidAmount
());
log
.
info
(
"获取订单时间,orderId:{},单据时间:{},应收:{}"
,
result
.
getOrderId
(),
result
.
getReceiptsDate
(),
result
.
getPaidAmount
());
boolean
contactOrder
=
contactOrderService
.
saveContactOrder
(
result
);
boolean
contactOrder
=
contactOrderService
.
saveContactOrder
(
result
);
log
.
info
(
"clearFlag:{},contactOrder:{}"
,
clearFlag
,
contactOrder
);
log
.
info
(
"clearFlag:{},contactOrder:{}"
,
clearFlag
,
contactOrder
);
...
...
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