|
@@ -107,7 +107,7 @@ func (t *OwnerService) OwnerlList() *OwnerlListRes {
|
|
comKey := common.GetMd5String(fmt.Sprintf("%+v business:%s", t, businessStr))
|
|
comKey := common.GetMd5String(fmt.Sprintf("%+v business:%s", t, businessStr))
|
|
listKey := fmt.Sprintf(NetworkManageOwnerlList, t.PositionId, comKey)
|
|
listKey := fmt.Sprintf(NetworkManageOwnerlList, t.PositionId, comKey)
|
|
// 检查 Redis 中是否存在列表缓存
|
|
// 检查 Redis 中是否存在列表缓存
|
|
- if ok, err := redis.Exists("newother", listKey); false && ok && err == nil && t.SourceType != "2" {
|
|
|
|
|
|
+ if ok, err := redis.Exists("newother", listKey); ok && err == nil && t.SourceType != "2" {
|
|
olr = handleRedisCache(listKey)
|
|
olr = handleRedisCache(listKey)
|
|
} else {
|
|
} else {
|
|
// 没有缓存时的处理逻辑
|
|
// 没有缓存时的处理逻辑
|
|
@@ -280,7 +280,7 @@ where
|
|
entIdArr := []string{}
|
|
entIdArr := []string{}
|
|
for _, v := range winnerArr {
|
|
for _, v := range winnerArr {
|
|
if v.EntId != "" {
|
|
if v.EntId != "" {
|
|
- entIdArr = append(entIdArr, fmt.Sprintf("'%s'", v.EntId))
|
|
|
|
|
|
+ entIdArr = append(entIdArr, v.EntId)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
personMap := map[string]string{}
|
|
personMap := map[string]string{}
|
|
@@ -489,7 +489,7 @@ func Findfirstparty(buyerArr []string, returnData []map[string]interface{}) []ma
|
|
entIdArr := []string{}
|
|
entIdArr := []string{}
|
|
for _, v := range relationshipArr {
|
|
for _, v := range relationshipArr {
|
|
if v.Bid != "" {
|
|
if v.Bid != "" {
|
|
- entIdArr = append(entIdArr, fmt.Sprintf("'%s'", v.Bid))
|
|
|
|
|
|
+ entIdArr = append(entIdArr, v.Bid)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
personMap := map[string]string{}
|
|
personMap := map[string]string{}
|