|
@@ -616,7 +616,7 @@ func DrawClues(positionId, count1, count2, count3 int64) int {
|
|
counts, counts1 := 0, 0
|
|
counts, counts1 := 0, 0
|
|
for {
|
|
for {
|
|
logx.Info("等级2线索领取", count2, counts1, counts)
|
|
logx.Info("等级2线索领取", count2, counts1, counts)
|
|
- data := JyBiTidb.SelectBySql(`SELECT max(c.createTime) as ctime,a.id,a.trailstatus FROM dwd_f_crm_clue_info a
|
|
|
|
|
|
+ data := JyBiTidb.SelectBySql(`SELECT max(c.createTime) as ctime,a.id,a.trailstatus,a.cluename FROM dwd_f_crm_clue_info a
|
|
LEFT JOIN Call_Accounting.voice_record c ON c.CalledNo = a.phone
|
|
LEFT JOIN Call_Accounting.voice_record c ON c.CalledNo = a.phone
|
|
WHERE a.level_open = 2 AND a.is_assign = 0 AND a.uid !="" AND a.is_transfer != 1 GROUP BY a.id ORDER BY ctime asc limit ?,1`, counts1)
|
|
WHERE a.level_open = 2 AND a.is_assign = 0 AND a.uid !="" AND a.is_transfer != 1 GROUP BY a.id ORDER BY ctime asc limit ?,1`, counts1)
|
|
counts1++
|
|
counts1++
|
|
@@ -641,7 +641,7 @@ func DrawClues(positionId, count1, count2, count3 int64) int {
|
|
counts, counts1 := 0, 0
|
|
counts, counts1 := 0, 0
|
|
for {
|
|
for {
|
|
logx.Info("等级3线索领取", count3, counts1, counts)
|
|
logx.Info("等级3线索领取", count3, counts1, counts)
|
|
- data := JyBiTidb.SelectBySql(`SELECT max(c.createTime) as ctime,a.id,a.trailstatus FROM dwd_f_crm_clue_info a
|
|
|
|
|
|
+ data := JyBiTidb.SelectBySql(`SELECT max(c.createTime) as ctime,a.id,a.trailstatus,a.cluename FROM dwd_f_crm_clue_info a
|
|
LEFT JOIN Call_Accounting.voice_record c ON c.CalledNo = a.phone
|
|
LEFT JOIN Call_Accounting.voice_record c ON c.CalledNo = a.phone
|
|
WHERE a.level_open = 3 AND a.is_assign = 0 AND a.uid !="" AND a.is_transfer != 1 GROUP BY a.id ORDER BY ctime asc limit ?,1`, counts1)
|
|
WHERE a.level_open = 3 AND a.is_assign = 0 AND a.uid !="" AND a.is_transfer != 1 GROUP BY a.id ORDER BY ctime asc limit ?,1`, counts1)
|
|
counts1++
|
|
counts1++
|