|
@@ -542,7 +542,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
|
|
logx.Info("count:", count, "---", s.ModuleFlag)
|
|
logx.Info("count:", count, "---", s.ModuleFlag)
|
|
log.Println("查询数据总数用时", start2-start)
|
|
log.Println("查询数据总数用时", start2-start)
|
|
findSql = "SELECT aa.*, bb.labelvalues as industry FROM (select a.id,a.date,a.infoid,a.isvisit,a.matchkeys,a.type,b.isvalidfile as attachment_count,b.site," +
|
|
findSql = "SELECT aa.*, bb.labelvalues as industry FROM (select a.id,a.date,a.infoid,a.isvisit,a.matchkeys,a.type,b.isvalidfile as attachment_count,b.site," +
|
|
- "b.title,b.area_code,b.buyerclass_code,b.subtype_code,b.publishtime,b.budget,b.bidamount,b.projectname,b.buyer,b.bidopentime "
|
|
|
|
|
|
+ "b.title,b.area_code,b.buyerclass_code,b.subtype_code,b.publishtime,b.budget,b.bidamount,b.projectname,b.bidopentime "
|
|
if s.ModuleFlag == EntnicheFlag {
|
|
if s.ModuleFlag == EntnicheFlag {
|
|
findSql += ", IF(a.source is NULL,1,a.source) as source "
|
|
findSql += ", IF(a.source is NULL,1,a.source) as source "
|
|
}
|
|
}
|
|
@@ -746,7 +746,6 @@ func (s *subscribePush) GetJyPushs(datas []map[string]interface{}, codeMap *code
|
|
MatchKeys: keys,
|
|
MatchKeys: keys,
|
|
Budget: common.InterfaceToStr(v["budget"]),
|
|
Budget: common.InterfaceToStr(v["budget"]),
|
|
BidAmount: common.InterfaceToStr(v["bidamount"]),
|
|
BidAmount: common.InterfaceToStr(v["bidamount"]),
|
|
- Buyer: common.InterfaceToStr(v["buyer"]),
|
|
|
|
ProjectName: common.InterfaceToStr(v["projectname"]),
|
|
ProjectName: common.InterfaceToStr(v["projectname"]),
|
|
Winner: common.InterfaceToStr(v["s_winner"]),
|
|
Winner: common.InterfaceToStr(v["s_winner"]),
|
|
BidOpenTime: common.Int64All(v["bidopentime"]),
|
|
BidOpenTime: common.Int64All(v["bidopentime"]),
|