xuzhiheng пре 1 година
родитељ
комит
d4bc6858d8
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      service/clue.go

+ 2 - 1
service/clue.go

@@ -589,7 +589,7 @@ func DrawClues(positionId, count1, count2, count3 int64) int {
 	if count1 > 0 {
 		counts := 0
 		for {
-			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
 					WHERE a.level_open = 1 AND a.is_assign = 0 AND a.uid !="" AND a.is_transfer != 1 GROUP BY a.id ORDER BY ctime asc limit 1`)
 			if data != nil && len(*data) > 0 {
@@ -654,6 +654,7 @@ func batchDraw(data []map[string]interface{}, nowTime, seatNumber, name string,
 			if cdata != nil && len(*cdata) > 0 {
 				salePositionId := common.Int64All((*cdata)["position_id"])
 				if pcount := JyBiMysql.Count("dwd_f_crm_personnel_management", map[string]interface{}{"resign": 0, "position_id": salePositionId}); pcount > 0 {
+					//
 					return count
 				} else {
 					saledata := JyBiMysql.SelectBySql(`SELECT position_id from dwd_d_crm_department_level_succbi WHERE bi_pcode in (SELECT bi_pcode from dwd_d_crm_department_level_succbi WHERE position_id = ?) AND resign = 0`, salePositionId)