Commit dda4cd96 by 王祖波

建联天数限制

parent 22cf471b
...@@ -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;
} }
...@@ -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;
......
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