|
@@ -282,14 +282,14 @@ func saveSalesFunnel(tx *sql.Tx, args []interface{}, tpl_id int64) int64 {
|
|
|
}, "id", "")
|
|
|
if stageData != nil {
|
|
|
stageId = gconv.Int64((*stageData)["id"])
|
|
|
- //进度查询
|
|
|
+ /*//进度查询
|
|
|
matterData := cm.CrmMysql.SelectBySql("select SUM(ratio) as ratio from config_stage_matter where stage_id=?", stageId)
|
|
|
if matterData != nil && len(*matterData) > 0 {
|
|
|
ratio = gconv.Int64((*matterData)[0]["ratio"])
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
+ args = append(args, stageId)
|
|
|
args = append(args, 0)
|
|
|
- args = append(args, ratio)
|
|
|
//当前阶段进展
|
|
|
_, id := cm.CrmMysql.InsertBatchByTx(tx, entity.SALES_FUNNEL, fields, args)
|
|
|
return id
|