瀏覽代碼

feat: 删除配置项

zhangxinlei1996 1 年之前
父節點
當前提交
6e4da97537
共有 3 個文件被更改,包括 3 次插入9 次删除
  1. 1 3
      service/custom.go
  2. 1 3
      service/sale_chance.go
  3. 1 3
      service/sale_clue.go

+ 1 - 3
service/custom.go

@@ -48,9 +48,7 @@ type CustomService struct {
 func (this *CustomService) Add(ctx context.Context) int64 {
 	nowtime := time.Now().Format(date.Date_Full_Layout)
 	nextFollowTime := time.Unix(this.NextfollowUpTime, 0).Format(date.Date_Full_Layout)
-	if this.NextfollowUpTime == 0 {
-		nextFollowTime = time.Now().AddDate(0, 0, cm.C.NextFollowUpTime).Format(date.Date_Full_Layout)
-	}
+
 	args := []interface{}{}
 	argsTask := []interface{}{}
 	argsTaskTeam := []interface{}{}

+ 1 - 3
service/sale_chance.go

@@ -50,9 +50,7 @@ func (this *SaleChanceService) Add(ctx context.Context) int64 {
 	expect_deal_time := time.Unix(this.ExpectedOrderTime, 0).Format(date.Date_Full_Layout)
 	//下次跟进时间
 	nextFollowTime := time.Unix(this.NextfollowUpTime, 0).Format(date.Date_Full_Layout)
-	if this.NextfollowUpTime == 0 {
-		nextFollowTime = time.Now().AddDate(0, 0, cm.C.NextFollowUpTime).Format(date.Date_Full_Layout)
-	}
+
 	baseUserIdArr := []int64{}
 	chanceId, taskId := int64(-1), int64(-1)
 	//判断处理方式

+ 1 - 3
service/sale_clue.go

@@ -40,9 +40,7 @@ type SaleClueService struct {
 func (this *SaleClueService) Add(ctx context.Context) int64 {
 	nowtime := time.Now().Format(date.Date_Full_Layout)
 	nextFollowTime := time.Unix(this.FollowUpTime, 0).Format(date.Date_Full_Layout)
-	if this.FollowUpTime == 0 {
-		nextFollowTime = time.Now().AddDate(0, 0, cm.C.NextFollowUpTime).Format(date.Date_Full_Layout)
-	}
+
 	args := []interface{}{}
 	argsTask := []interface{}{}
 	argsTaskTeam := []interface{}{}