|
@@ -55,7 +55,7 @@ func (this *SaleClueService) Add(ctx context.Context) int64 {
|
|
|
transferArr = append(transferArr, resp.PositionId)
|
|
|
}
|
|
|
//线索
|
|
|
- args = append(args, this.PositionId, this.EntId, this.EntUserId, this.ClueName, this.CluesSource, this.Summary, this.EmployInfoId, 0, nowtime)
|
|
|
+ args = append(args, this.PositionId, this.EntId, this.EntUserId, this.ClueName, this.CluesSource, this.Summary, this.EmployInfoId, 0, nowtime, this.CreateName)
|
|
|
//任务
|
|
|
argsTask = append(argsTask, this.EntId, this.ClueName+"的跟进任务", 1, this.PositionId, 1, nowtime, 1, qu.If(this.FollowUpTime == 0, nil, nextFollowTime))
|
|
|
|
|
@@ -64,7 +64,7 @@ func (this *SaleClueService) Add(ctx context.Context) int64 {
|
|
|
}
|
|
|
} else if this.Types == 1 {
|
|
|
//线索
|
|
|
- args = append(args, this.PositionId, this.EntId, this.EntUserId, this.ClueName, this.CluesSource, this.Summary, this.EmployInfoId, 0, time.Now().Format(date.Date_Full_Layout))
|
|
|
+ args = append(args, this.PositionId, this.EntId, this.EntUserId, this.ClueName, this.CluesSource, this.Summary, this.EmployInfoId, 0, time.Now().Format(date.Date_Full_Layout), this.CreateName)
|
|
|
//任务
|
|
|
argsTask = append(argsTask, this.EntId, this.ClueName+"的跟进任务", 1, this.PositionId, 1, nowtime, 1, qu.If(this.FollowUpTime == 0, nil, nextFollowTime))
|
|
|
//任务团队
|
|
@@ -80,7 +80,7 @@ func (this *SaleClueService) Add(ctx context.Context) int64 {
|
|
|
|
|
|
//SaleClueAdd 线索存储
|
|
|
func SaleClueAdd(tx *sql.Tx, args []interface{}) int64 {
|
|
|
- fields := []string{"position_id", "ent_id", "ent_user_id", "name", "source", "summary", "employ_info_id", "is_close", "create_time"}
|
|
|
+ fields := []string{"position_id", "ent_id", "ent_user_id", "name", "source", "summary", "employ_info_id", "is_close", "create_time", "create_person"}
|
|
|
_, id := cm.CrmMysql.InsertBatchByTx(tx, entity.SALE_CLUE, fields, args)
|
|
|
return id
|
|
|
}
|