|
@@ -65,7 +65,7 @@ func DistributeClueShow(this *biservice.DistributeClueShowReq, allocationCap int
|
|
m.ClueCount = 0
|
|
m.ClueCount = 0
|
|
m.CompanyCounts = 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
|
|
m.ExistingCount = existingCount
|
|
if existingCount >= allocationCap {
|
|
if existingCount >= allocationCap {
|
|
if this.DataType != 1 {
|
|
if this.DataType != 1 {
|