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
dda4cd96
Commit
dda4cd96
authored
May 28, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
建联天数限制
parent
22cf471b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Manage3Constants.java
...com/gic/haoban/manage/api/constants/Manage3Constants.java
+5
-0
ContactLogServiceImpl.java
...e/service/service/contact/impl/ContactLogServiceImpl.java
+3
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/constants/Manage3Constants.java
View file @
dda4cd96
...
@@ -25,4 +25,9 @@ public class Manage3Constants {
...
@@ -25,4 +25,9 @@ public class Manage3Constants {
* 企微最大分页
* 企微最大分页
*/
*/
public
static
final
Integer
QW_LIMIT
=
1000
;
public
static
final
Integer
QW_LIMIT
=
1000
;
/**
* 建联未转化限制时间天数
*/
public
static
final
Integer
CONTACT_ORDER_LIMIT_DAY
=
30
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/impl/ContactLogServiceImpl.java
View file @
dda4cd96
...
@@ -18,6 +18,7 @@ import com.gic.haoban.app.customer.dto.contact.ContactParamDTO;
...
@@ -18,6 +18,7 @@ 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.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.manage.api.constants.Manage3Constants
;
import
com.gic.haoban.manage.api.dto.contact.ContactConfigDTO
;
import
com.gic.haoban.manage.api.dto.contact.ContactConfigDTO
;
import
com.gic.haoban.manage.api.enums.contact.ContactAutoTypeEnum
;
import
com.gic.haoban.manage.api.enums.contact.ContactAutoTypeEnum
;
import
com.gic.haoban.manage.api.enums.contact.ContactFollowTypeEnum
;
import
com.gic.haoban.manage.api.enums.contact.ContactFollowTypeEnum
;
...
@@ -148,7 +149,7 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -148,7 +149,7 @@ public class ContactLogServiceImpl implements ContactLogService {
TabContactLog
lastContactLog
=
contactLogMapper
.
queryLastLog
(
memberId
,
clerkId
,
null
,
null
);
TabContactLog
lastContactLog
=
contactLogMapper
.
queryLastLog
(
memberId
,
clerkId
,
null
,
null
);
if
(
lastContactLog
!=
null
)
{
if
(
lastContactLog
!=
null
)
{
Date
contactTime
=
lastContactLog
.
getContactTime
();
Date
contactTime
=
lastContactLog
.
getContactTime
();
if
(
DateUtil
.
between
(
date
,
contactTime
,
DateUnit
.
SECOND
)
>
14
*
24
*
60
*
60
)
{
if
(
DateUtil
.
between
(
date
,
contactTime
,
DateUnit
.
SECOND
)
>
Manage3Constants
.
CONTACT_ORDER_LIMIT_DAY
*
24
*
60
*
60
)
{
contactCycle
=
lastContactLog
.
getContactCycle
()
+
1
;
contactCycle
=
lastContactLog
.
getContactCycle
()
+
1
;
}
else
{
}
else
{
contactCycle
=
lastContactLog
.
getContactCycle
();
contactCycle
=
lastContactLog
.
getContactCycle
();
...
@@ -286,7 +287,7 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -286,7 +287,7 @@ public class ContactLogServiceImpl implements ContactLogService {
if
(!
Objects
.
equals
(
clerkId
,
memberStoreClerk
.
getClerkId
()))
{
if
(!
Objects
.
equals
(
clerkId
,
memberStoreClerk
.
getClerkId
()))
{
return
null
;
return
null
;
}
}
if
(
DateUtil
.
compare
(
contactTime
,
DateUtil
.
date
().
offset
(
DateField
.
DAY_OF_MONTH
,
-
14
))
<
0
)
{
if
(
DateUtil
.
compare
(
contactTime
,
DateUtil
.
date
().
offset
(
DateField
.
DAY_OF_MONTH
,
-
Manage3Constants
.
CONTACT_ORDER_LIMIT_DAY
))
<
0
)
{
return
null
;
return
null
;
}
}
return
lastContactLog
;
return
lastContactLog
;
...
...
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