WH01243 1 rok pred
rodič
commit
b746c9fbd2
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      service/company.go

+ 1 - 1
service/company.go

@@ -65,7 +65,7 @@ func DistributeClueShow(this *biservice.DistributeClueShowReq, allocationCap int
 		m.ClueCount = 0
 		m.CompanyCounts = 0
 		//现有数据查询
-		existingCount := JyBiTidb.CountBySql(`select count(1) from dwd_f_crm_clue_info where position_id=? and  is_assign=1 and trailstatus != '08' `, m.PositionId)
+		existingCount := JyBiTidb.CountBySql(`select count(1) from dwd_f_crm_clue_info where position_id=? and  is_assign=1   and is_transfer != 1 `, m.PositionId)
 		m.ExistingCount = existingCount
 		if existingCount >= allocationCap {
 			if this.DataType != 1 {