WH01243 1 жил өмнө
parent
commit
e4191a257a
1 өөрчлөгдсөн 6 нэмэгдсэн , 5 устгасан
  1. 6 5
      service/clue.go

+ 6 - 5
service/clue.go

@@ -535,8 +535,9 @@ func DrawClueSync(this *biservice.DrawClueReq) (int, int) {
 func DrawClues(positionId, count1, count2, count3 int64) int {
 	nowTime := time.Now().Format("2006-01-02 15:04:05")
 	seatNumber, name := getSeatNumber(positionId)
-	data1, data2, data3, drawCount := &[]map[string]interface{}{}, &[]map[string]interface{}{}, &[]map[string]interface{}{}, 0
-	if count1 > 0 {
+	drawCount := 0
+	//data1, data2, data3, drawCount := &[]map[string]interface{}{}, &[]map[string]interface{}{}, &[]map[string]interface{}{}, 0
+	/*if count1 > 0 {
 		data1 = JyBiTidb.SelectBySql(`SELECT * from dwd_f_crm_clue_info where is_assign = 0 and level_open = ? and cluename in (SELECT cluename from dwd_f_crm_clue_info where position_id = ? GROUP BY cluename)`, 1, positionId)
 		if data1 != nil && len(*data1) > 0 {
 			if int64(len(*data1)) >= count1 {
@@ -571,9 +572,9 @@ func DrawClues(positionId, count1, count2, count3 int64) int {
 				count3 = count3 - int64(len(*data3))
 			}
 		}
-	}
+	}*/
 	//
-	if data1 != nil && len(*data1) > 0 {
+	/*if data1 != nil && len(*data1) > 0 {
 		count := batchDraw(*data1, nowTime, seatNumber, name, positionId, "1")
 		drawCount += count
 	}
@@ -584,7 +585,7 @@ func DrawClues(positionId, count1, count2, count3 int64) int {
 	if data3 != nil && len(*data3) > 0 {
 		count := batchDraw(*data3, nowTime, seatNumber, name, positionId, "1")
 		drawCount += count
-	}
+	}*/
 	//
 	logx.Info("count1,count2,count3 ", count1, count2, count3, drawCount)
 	if count1 > 0 {