Bladeren bron

Merge branch 'dev_v1.0.3_wh' of CRM/application into feature/v1.0.3

王浩 1 jaar geleden
bovenliggende
commit
e0cc874318
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 3 3
      service/custom.go
  2. 1 1
      service/sale_chance.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
 		/**/
 	}

+ 1 - 1
service/sale_chance.go

@@ -193,7 +193,7 @@ func (this *SaleChanceService) SaveChange(ctx context.Context, argsChange, argsT
 		if changeId > 0 && taskId > 0 && ok1 && planId > 0 && SalesFunnel > 0 {
 			return true
 		}
-		log.Println("save change err: ", changeId, taskId, ok1, planId)
+		log.Println("save change err: ", changeId, taskId, ok1, planId, SalesFunnel)
 		return false
 	})