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
35ca4637
Commit
35ca4637
authored
May 28, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
建联天数变更历史天数逻辑调整
parent
dda4cd96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
ContactLogServiceImpl.java
...e/service/service/contact/impl/ContactLogServiceImpl.java
+20
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/impl/ContactLogServiceImpl.java
View file @
35ca4637
...
@@ -53,6 +53,8 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -53,6 +53,8 @@ public class ContactLogServiceImpl implements ContactLogService {
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
ContactFollowService
.
class
);
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
ContactFollowService
.
class
);
private
static
final
Date
releaseDate
=
new
Date
(
"2025-05-29 00:00:00"
);
@Autowired
@Autowired
private
TabContactLogMapper
contactLogMapper
;
private
TabContactLogMapper
contactLogMapper
;
@Autowired
@Autowired
...
@@ -149,7 +151,8 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -149,7 +151,8 @@ 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
)
>
Manage3Constants
.
CONTACT_ORDER_LIMIT_DAY
*
24
*
60
*
60
)
{
Integer
contactOrderLimitDay
=
getContactOrderLimitDay
(
contactTime
);
if
(
DateUtil
.
between
(
date
,
contactTime
,
DateUnit
.
SECOND
)
>
contactOrderLimitDay
*
24
*
60
*
60
)
{
contactCycle
=
lastContactLog
.
getContactCycle
()
+
1
;
contactCycle
=
lastContactLog
.
getContactCycle
()
+
1
;
}
else
{
}
else
{
contactCycle
=
lastContactLog
.
getContactCycle
();
contactCycle
=
lastContactLog
.
getContactCycle
();
...
@@ -189,6 +192,20 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -189,6 +192,20 @@ public class ContactLogServiceImpl implements ContactLogService {
return
contactLog
;
return
contactLog
;
}
}
/**
* 历史数据超过14天建联未转化的按14天周期
* @param contactTime
* @return
*/
private
Integer
getContactOrderLimitDay
(
Date
contactTime
)
{
Integer
contactOrderLimitDay
=
Manage3Constants
.
CONTACT_ORDER_LIMIT_DAY
;
if
(
DateUtil
.
compare
(
releaseDate
,
contactTime
)
>
0
&&
DateUtil
.
between
(
releaseDate
,
contactTime
,
DateUnit
.
DAY
)
>
14
)
{
contactOrderLimitDay
=
14
;
}
logger
.
info
(
"建联未转化计算天数:{}"
,
contactOrderLimitDay
);
return
contactOrderLimitDay
;
}
@Override
@Override
public
void
autoContactLog
(
ContactLogQDTO
qdto
)
{
public
void
autoContactLog
(
ContactLogQDTO
qdto
)
{
if
(
qdto
==
null
)
{
if
(
qdto
==
null
)
{
...
@@ -287,7 +304,8 @@ public class ContactLogServiceImpl implements ContactLogService {
...
@@ -287,7 +304,8 @@ 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
,
-
Manage3Constants
.
CONTACT_ORDER_LIMIT_DAY
))
<
0
)
{
Integer
contactOrderLimitDay
=
getContactOrderLimitDay
(
contactTime
);
if
(
DateUtil
.
compare
(
contactTime
,
DateUtil
.
date
().
offset
(
DateField
.
DAY_OF_MONTH
,
-
contactOrderLimitDay
))
<
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