|
@@ -23,7 +23,7 @@ import (
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
- NetworkManageAllProjectKey = "networkManage_allProject_%d"
|
|
|
+ NetworkManageAllProjectKey = "networkManage_allProject_%d_%s"
|
|
|
NetworkManageList = "networkManage_networkList_%d_%s"
|
|
|
)
|
|
|
|
|
@@ -329,7 +329,7 @@ func (n *network) Associate(in *types.AssociateReq) (reply *types.Reply) {
|
|
|
// 人脉库-全部人脉项目
|
|
|
func (n *network) AllProject(in *types.AllprojectReq) (reply *types.Reply) {
|
|
|
reply = &types.Reply{}
|
|
|
- key := fmt.Sprintf(NetworkManageAllProjectKey, in.PositionId)
|
|
|
+ key := fmt.Sprintf(NetworkManageAllProjectKey, in.PositionId, GetMd5String(fmt.Sprintf("%+v", in)))
|
|
|
rbt, rerr := redis.GetNewBytes("newother", key)
|
|
|
if rerr == nil && rbt != nil {
|
|
|
json.Unmarshal(*rbt, &reply)
|
|
@@ -1502,7 +1502,7 @@ func (n *network) AllIntroduceOwner(sqlAppend1, sqlAppend2 string, args []interf
|
|
|
}
|
|
|
|
|
|
func (n *network) DeleteCache(positionId int64) {
|
|
|
- redis.Del("newother", fmt.Sprintf(NetworkManageAllProjectKey, positionId))
|
|
|
+ redis.Del("newother", fmt.Sprintf(NetworkManageAllProjectKey, positionId, "*"))
|
|
|
redis.DelByCodePattern("newother", fmt.Sprintf(NetworkManageList, positionId, "*"))
|
|
|
redis.DelByCodePattern("newother", fmt.Sprintf(NetworkManageCoopHistory, positionId, "*"))
|
|
|
redis.DelByCodePattern("newother", fmt.Sprintf(NetworkManageOwnerlList, positionId, "*"))
|