|
@@ -71,6 +71,7 @@ func (l *NewestBiddingLogic) NewestBidding(in *bxbase.NewestBiddingReq) (*bxbase
|
|
|
}
|
|
|
return res, 1
|
|
|
}
|
|
|
+ var subtype string
|
|
|
//登录用户
|
|
|
if in.UserId != "" {
|
|
|
//优先级 由测试确认 大会员 》 商机管理 》 VIP 》 普通用户 》 搜索历史
|
|
@@ -164,7 +165,7 @@ func (l *NewestBiddingLogic) NewestBidding(in *bxbase.NewestBiddingReq) (*bxbase
|
|
|
//历史搜索
|
|
|
res.Data.History = strings.Split(hKeys, ",")
|
|
|
//根据订阅词获取查询语句
|
|
|
- query := model.NewestQuery("", hKeys)
|
|
|
+ query := model.NewestQuery("", hKeys, subtype)
|
|
|
result := model.NewestES(query)
|
|
|
res.Data.IsVip = false
|
|
|
res.Data.HasSubKeys = false
|
|
@@ -172,9 +173,12 @@ func (l *NewestBiddingLogic) NewestBidding(in *bxbase.NewestBiddingReq) (*bxbase
|
|
|
res.Data.List = result
|
|
|
return res, 0
|
|
|
}
|
|
|
+ } else {
|
|
|
+ //未登录用户访问全部信息类型 需要过滤掉 拟建和采购意向
|
|
|
+ subtype = "招标预告,招标公告,招标结果,招标信用信息"
|
|
|
}
|
|
|
if in.IsSearch == 2 { //定位查询(默认全国)
|
|
|
- query := model.NewestQuery(rks, "")
|
|
|
+ query := model.NewestQuery(rks, "", subtype)
|
|
|
result := model.NewestES(query)
|
|
|
res.Data.IsVip = false
|
|
|
res.Data.HasSubKeys = false
|