|
@@ -374,7 +374,7 @@ func (this *EntPortrait) WinnerMiniPortrait() {
|
|
|
entName := qutil.ObjToString(entInfo["entName"])
|
|
|
if entName != "" {
|
|
|
if contactList, err := cepm.GetContacts(entName, ContactEntTypeWinner); err == nil {
|
|
|
- rData["contactCount"] = GetContactCount(contactList)
|
|
|
+ rData["contactCount"] = len(contactList)
|
|
|
} else {
|
|
|
rData["contactCount"] = 0
|
|
|
}
|
|
@@ -684,7 +684,7 @@ func (this *EntPortrait) BuyerMiniPortrait() {
|
|
|
rData["biddingCount"] = cepm.GetBuyerNewCount(entName)
|
|
|
//采购联系人数量
|
|
|
if contactList, err := cepm.GetContacts(entName, ContactEntTypeBuyer); err == nil {
|
|
|
- rData["contactCount"] = GetContactCount(contactList)
|
|
|
+ rData["contactCount"] = len(contactList)
|
|
|
}
|
|
|
//
|
|
|
if config.Config.MiniPortraitCacheTime > 0 {
|
|
@@ -777,6 +777,7 @@ func (this *EntPortrait) NoLoginAssociatedInfo() {
|
|
|
this.ServeJson(NewResult(rData, nil))
|
|
|
}
|
|
|
|
|
|
+// 已弃用 在p705版本调整为不去重
|
|
|
// GetContactCount 联系方式去重后的数量 p406 根据联系方式去重
|
|
|
func GetContactCount(contactList []interface{}) (count int) {
|
|
|
exists := map[string]struct{}{}
|