|
@@ -260,6 +260,19 @@ func (c *DataSourceController) SearchByEs() {
|
|
|
// }
|
|
|
//}
|
|
|
|
|
|
+ for _, v := range listMap {
|
|
|
+ classifyId, ok := v[classifyIdKey].(int)
|
|
|
+ if !ok {
|
|
|
+ v["ClassifyUniqueCode"] = ""
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ v["ClassifyUniqueCode"] = strconv.Itoa(classifyId)
|
|
|
+ startDate := v["StartDate"].(string)
|
|
|
+ v["StartDate"] = utils.GormDateStrToDateStr(startDate)
|
|
|
+ endDate := v["EndDate"].(string)
|
|
|
+ v["EndDate"] = utils.GormDateStrToDateStr(endDate)
|
|
|
+ }
|
|
|
+
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
resp := dataSourceModel.SearchDataSourceResp{
|
|
|
Paging: page,
|