xingzai 1 an în urmă
părinte
comite
adc1a9eddd
2 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 3 0
      controllers/search.go
  2. 1 0
      services/es_comprehensive.go

+ 3 - 0
controllers/search.go

@@ -386,6 +386,9 @@ func (this *MobileSearchController) ComprehensiveList() {
 		br.ErrMsg = "获取数据失败,Err:" + err.Error()
 		return
 	}
+	if len(list) == 0 {
+		list = make([]*models.CygxResourceDataNewResp, 0)
+	}
 	resp.List = list
 	page := paging.GetPaging(currentIndex, pageSize, int(tmpTotalResult))
 	resp.Paging = page

+ 1 - 0
services/es_comprehensive.go

@@ -999,6 +999,7 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
 				}
 			}
 		}
+		listIndustrialResourceIds, _ = HandleIndustryList(listIndustrialResourceIds, user, "Hz")
 		for _, v := range listIndustrialResourceIds {
 			mapItems[fmt.Sprint("industrialsource", v.IndustrialManagementId)].IndustrialResource = v
 		}