|
@@ -279,7 +279,8 @@ func saveSalesFunnel(tx *sql.Tx, args []interface{}, tpl_id int64) int64 {
|
|
|
stageData := cm.CrmMysql.FindOne(entity.CONFIG_TPL_STAGE, map[string]interface{}{
|
|
|
"tpl_id": tpl_id,
|
|
|
"order": 1,
|
|
|
- }, "id", "")if stageData != nil {
|
|
|
+ }, "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)
|