|
@@ -272,7 +272,7 @@ func SaveLedger(ctx context.Context, positionId, businessId, taskId int64, types
|
|
|
|
|
|
// 消息漏斗保存
|
|
|
func saveSalesFunnel(tx *sql.Tx, args []interface{}, tpl_id int64) int64 {
|
|
|
- fields := []string{`chance_id`, `task_id`, `chance_name`, `outline`, `next_follow_time`, `expected_transaction_amount`, `business_type`, `ent_id`, `employ_info_id`, `current_generation`, `current_generation_progress`}
|
|
|
+ fields := []string{`chance_id`, `task_id`, `chance_name`, `outline`, `next_follow_time`, `expected_transaction_amount`, `business_type`, `ent_id`, `employ_info_id`, `current_generation`, `current_generation_progress`, `status`}
|
|
|
//当前阶段
|
|
|
//ratio := int64(0)
|
|
|
stageId := int64(0)
|
|
@@ -290,6 +290,7 @@ func saveSalesFunnel(tx *sql.Tx, args []interface{}, tpl_id int64) int64 {
|
|
|
}
|
|
|
args = append(args, stageId)
|
|
|
args = append(args, 0)
|
|
|
+ args = append(args, 1)
|
|
|
//当前阶段进展
|
|
|
_, id := cm.CrmMysql.InsertBatchByTx(tx, entity.SALES_FUNNEL, fields, args)
|
|
|
return id
|