|
@@ -573,7 +573,7 @@ func (n *network) List(in *types.NetWorkListReq) *types.Reply {
|
|
|
if in.Current_page <= 0 {
|
|
|
in.Current_page = 1
|
|
|
}
|
|
|
- dbPaging := in.Buyercount_start == 0 && in.Buyercount_end == 0 && in.Monitor == 0 && in.Monitorcount_start == 0 && in.Monitorcount_end == 0 && in.Project_matchme == 0 && in.Order_amount == 0
|
|
|
+ dbPaging := in.Buyercount_start == 0 && in.Buyercount_end == 0 && in.Monitor == 0 && in.Monitorcount_start == 0 && in.Monitorcount_end == 0 && in.Order_amount == 0
|
|
|
sqlAppendArgs := []interface{}{}
|
|
|
sqlAppend1 := ""
|
|
|
if dbPaging && in.Type != "" {
|
|
@@ -637,11 +637,9 @@ func (n *network) List(in *types.NetWorkListReq) *types.Reply {
|
|
|
list := []*map[string]interface{}{}
|
|
|
isTjProject := true
|
|
|
businessType := []string{}
|
|
|
- if in.Project_matchme == 1 {
|
|
|
- businessType = strings.Split(FindBusiness(in.EntId, in.MgoUserId), ",")
|
|
|
- if len(businessType) == 0 {
|
|
|
- isTjProject = false
|
|
|
- }
|
|
|
+ businessType = strings.Split(FindBusiness(in.EntId, in.MgoUserId), ",")
|
|
|
+ if len(businessType) == 0 {
|
|
|
+ isTjProject = false
|
|
|
}
|
|
|
entMonitor := NetworkCom.EntMonitor(in.UserId)
|
|
|
aio := n.AllIntroduceOwner(sqlAppend1, sqlAppend2, args, isTjProject, businessType, entMonitor)
|
|
@@ -737,8 +735,6 @@ func (n *network) List(in *types.NetWorkListReq) *types.Reply {
|
|
|
continue
|
|
|
} else if in.Monitorcount_end > 0 && monitor_count > in.Monitorcount_end {
|
|
|
continue
|
|
|
- } else if in.Project_matchme == 1 && project_count == 0 {
|
|
|
- continue
|
|
|
}
|
|
|
if !dbPaging {
|
|
|
switch v.Itype {
|