|
@@ -549,7 +549,7 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
|
|
mapItems[fmt.Sprint("activity", v.ActivityId)].Activity = v
|
|
mapItems[fmt.Sprint("activity", v.ActivityId)].Activity = v
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ fmt.Println(industrialResourceIdsHz)
|
|
//产业资源包
|
|
//产业资源包
|
|
if len(industrialResourceIdsHz) > 0 {
|
|
if len(industrialResourceIdsHz) > 0 {
|
|
pars = make([]interface{}, 0)
|
|
pars = make([]interface{}, 0)
|
|
@@ -587,11 +587,14 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
|
|
if v.TimeLineData == "" {
|
|
if v.TimeLineData == "" {
|
|
v.ListTimeLine = make([]models.TimeLineReportResp, 0)
|
|
v.ListTimeLine = make([]models.TimeLineReportResp, 0)
|
|
} else {
|
|
} else {
|
|
|
|
+ fmt.Println(v.TimeLineData)
|
|
if err = json.Unmarshal([]byte(v.TimeLineData), &v.ListTimeLine); err != nil {
|
|
if err = json.Unmarshal([]byte(v.TimeLineData), &v.ListTimeLine); err != nil {
|
|
|
|
+ fmt.Println(err)
|
|
e = errors.New("Unmarshal, Err: " + e.Error())
|
|
e = errors.New("Unmarshal, Err: " + e.Error())
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ fmt.Println(v.ListTimeLine)
|
|
v.Source = 1
|
|
v.Source = 1
|
|
v.UpdateTime = v.PublishDate
|
|
v.UpdateTime = v.PublishDate
|
|
mapItems[fmt.Sprint("industrialsourceHz", v.IndustrialManagementId)].IndustrialResource = v
|
|
mapItems[fmt.Sprint("industrialsourceHz", v.IndustrialManagementId)].IndustrialResource = v
|
|
@@ -613,7 +616,6 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
|
|
err = errors.New("GetSearchResourceList, Err: " + e.Error())
|
|
err = errors.New("GetSearchResourceList, Err: " + e.Error())
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- fmt.Println(listIndustrialResourceIds)
|
|
|
|
conditionSubject := condition + ` AND m.industrial_management_id IN (` + utils.GetOrmInReplace(len(industrialResourceIdsYx)) + `)`
|
|
conditionSubject := condition + ` AND m.industrial_management_id IN (` + utils.GetOrmInReplace(len(industrialResourceIdsYx)) + `)`
|
|
pars = append(pars, industrialResourceIdsYx)
|
|
pars = append(pars, industrialResourceIdsYx)
|
|
listSubjcet, e := models.GetIndustrialSubjectAllByIndustrialId(pars, conditionSubject)
|
|
listSubjcet, e := models.GetIndustrialSubjectAllByIndustrialId(pars, conditionSubject)
|