WH01243 1 rok pred
rodič
commit
6aaacf2137
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      service/custom.go

+ 3 - 3
service/custom.go

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