|
@@ -23,24 +23,25 @@ type ProjectData struct {
|
|
|
}
|
|
|
|
|
|
type ProjectEntry struct {
|
|
|
- ProjectId string `ch:"project_id"`
|
|
|
- ProjectName string `ch:"project_name"`
|
|
|
- BusinessType string `ch:"business_type"`
|
|
|
- Buyer string `ch:"buyer"`
|
|
|
- BuyerId string `ch:"buyer_id"`
|
|
|
- Winner []string `ch:"winner"`
|
|
|
- WinnerId []string `ch:"winner_id"`
|
|
|
- Area string `ch:"area"`
|
|
|
- City string `ch:"city"`
|
|
|
- District string `ch:"district"`
|
|
|
- ZbTime int64 `ch:"zbtime"`
|
|
|
- EndTime int64 `ch:"endtime"`
|
|
|
- IsHandle int `json:"IsHandle"`
|
|
|
- IsIgnore int `json:"IsIgnore"`
|
|
|
- IsCreate int `json:"IsCreate"`
|
|
|
- MyConn bool `json:"MyConn"`
|
|
|
- ConnType int `json:"ConnType"`
|
|
|
- HighSuccess bool `json:"HighSuccess"`
|
|
|
+ ProjectId string `ch:"project_id"`
|
|
|
+ ProjectName string `ch:"project_name"`
|
|
|
+ BusinessType string `ch:"business_type"`
|
|
|
+ Buyer string `ch:"buyer"`
|
|
|
+ BuyerId string `ch:"buyer_id"`
|
|
|
+ Winner []string `ch:"winner"`
|
|
|
+ WinnerId []string `ch:"winner_id"`
|
|
|
+ Area string `ch:"area"`
|
|
|
+ City string `ch:"city"`
|
|
|
+ District string `ch:"district"`
|
|
|
+ ZbTime int64 `ch:"zbtime"`
|
|
|
+ EndTime int64 `ch:"endtime"`
|
|
|
+ IsHandle int `json:"IsHandle"`
|
|
|
+ IsIgnore int `json:"IsIgnore"`
|
|
|
+ IsCreate int `json:"IsCreate"`
|
|
|
+ MyConn bool `json:"MyConn"`
|
|
|
+ ConnType int `json:"ConnType"`
|
|
|
+ HighSuccess bool `json:"HighSuccess"`
|
|
|
+ NwRoute map[string]interface{} `json:"NwRoute"`
|
|
|
}
|
|
|
|
|
|
func GetProjectList(req *types.ProjectListReq) (resultList []*ProjectEntry, hasNextPage bool, total int) {
|
|
@@ -286,7 +287,10 @@ func moreInfo(req *types.ProjectListReq, list []*ProjectEntry) (result []*Projec
|
|
|
// 人脉路径
|
|
|
// 有我的人脉标签时不需要查询人脉路径信息
|
|
|
if m.MyConn == false && m.BuyerId != "" {
|
|
|
- ConnectionsHandle([]string{m.BuyerId}, req.PositionId, false)
|
|
|
+ companyList := ConnectionsHandle([]string{m.BuyerId}, req.PositionId, false)
|
|
|
+ if len(companyList) > 0 {
|
|
|
+ m.NwRoute = companyList[0]
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|