|
@@ -158,7 +158,7 @@ func userbase() {
|
|
|
nowTime := time.Now().Format(date.Date_Full_Layout)
|
|
|
source := common.ObjToString(v["source"])
|
|
|
if phone != "" {
|
|
|
- contactsData := TiDb.SelectBySql("select * from dwd_f_userbase_contacts where D = ? and is_delete = 1", phone)
|
|
|
+ contactsData := TiDb.SelectBySql("select * from dwd_f_userbase_contacts where phone = ? and is_delete = 1", phone)
|
|
|
if contactsData == nil || len(*contactsData) == 0 {
|
|
|
contactsData2 := TiDb.SelectBySql("select * from dwd_f_userbase_contacts where baseinfo_id = ? and is_delete = 1", uId)
|
|
|
if contactsData2 != nil && len(*contactsData2) > 0 {
|
|
@@ -559,7 +559,6 @@ func FindUpperLimit(positionId string, dataType string) bool {
|
|
|
if positionId == "" {
|
|
|
return false
|
|
|
}
|
|
|
-
|
|
|
if dataType == "positionId" {
|
|
|
fmt.Println("111", positionId, TiDb.CountBySql(`select count(1) from dwd_f_crm_clue_info where position_id=? and is_assign=1 `, positionId))
|
|
|
return TiDb.CountBySql(`select count(1) from dwd_f_crm_clue_info where position_id=? and is_assign=1 and trailstatus != '08' `, positionId) >= cfg.AllocationCap
|