Commit 122eaf4b by 朱继来

调整

parent 357cf570
Showing with 1 additions and 3 deletions
......@@ -5,7 +5,6 @@ import (
"crm-server/internal/dao"
"crm-server/internal/model"
"crm-server/internal/service"
"fmt"
"github.com/ichunt2019/logger"
"strconv"
"time"
......@@ -20,7 +19,7 @@ import (
func SetFree() {
// 1、获取所有限制跟进时间不为0的数据
row, err := dao.GetDb().Queryx("select id,user_id,sale_id,assign_time,update_time,sys_limit,limit_follow_time from lie_salesman where limit_follow_time != 0")
row, err := dao.GetDb().Queryx("select id,user_id,sale_id,assign_time,update_time,sys_limit,limit_follow_time from lie_salesman where limit_follow_time != 0 limit 100")
if err != nil {
logger.Info("SetFree method error:", err.Error())
......@@ -90,7 +89,6 @@ func CompareTime(user_id, limit_follow_time int) {
service.DingAlert(configs.Ding_crm_task_token, "任务告警:释放用户成功,CRM用户ID:"+ strconv.Itoa(user_id), "")
} else if diff <= 7 * 86400 { // 设置为即将流失用户
if user_info.Is_churn == 1 {
fmt.Println("111")
return
}
......
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 sign in to comment