Commit b098c00e by 王祖波

建联未转化时间调整发布时间

parent 59585e39
package com.gic.haoban.manage.api.constants;
import java.util.Date;
/**
* @author mozhu
* @date 2022/4/19 15:12
......@@ -30,4 +32,10 @@ public class Manage3Constants {
* 建联未转化限制时间天数
*/
public static final Integer CONTACT_ORDER_LIMIT_DAY = 30;
/**
* 建联未转化时间调整发布时间
*/
public static final Date CONTACT_FIX_RELEASE_DATE = new Date("2025/05/29 00:00:00");
}
......@@ -53,8 +53,6 @@ public class ContactLogServiceImpl implements ContactLogService {
private static final Logger logger = LogManager.getLogger(ContactFollowService.class);
private static final Date releaseDate = new Date("2025/05/29 00:00:00");
@Autowired
private TabContactLogMapper contactLogMapper;
@Autowired
......@@ -199,7 +197,7 @@ public class ContactLogServiceImpl implements ContactLogService {
*/
private Integer getContactOrderLimitDay(Date contactTime) {
Integer contactOrderLimitDay = Manage3Constants.CONTACT_ORDER_LIMIT_DAY;
if (DateUtil.compare(releaseDate, contactTime) > 0 && DateUtil.between(releaseDate, contactTime, DateUnit.SECOND) > 14 * 24 * 60 * 60) {
if (DateUtil.compare(Manage3Constants.CONTACT_FIX_RELEASE_DATE, contactTime) > 0 && DateUtil.between(Manage3Constants.CONTACT_FIX_RELEASE_DATE, contactTime, DateUnit.SECOND) > 14 * 24 * 60 * 60) {
contactOrderLimitDay = 14;
}
logger.info("建联未转化计算天数:{}",contactOrderLimitDay);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment