|
@@ -2229,6 +2229,8 @@ func (this *EdbInfoController) EdbInfoList() {
|
|
|
br.Msg = "获取成功"
|
|
|
return
|
|
|
}
|
|
|
+ // 时间转格式
|
|
|
+ edbInfoItem.ConvertToResp()
|
|
|
|
|
|
//获取英文频度
|
|
|
edbInfoItem.FrequencyEn = data.GetFrequencyEn(edbInfoItem.Frequency)
|
|
@@ -3349,6 +3351,7 @@ func (this *EdbInfoController) EdbInfoFilter() {
|
|
|
return
|
|
|
}
|
|
|
for _, nv := range newEdbInfoList {
|
|
|
+ nv.ConvertToResp()
|
|
|
if _, ok := existMap[nv.EdbInfoId]; !ok {
|
|
|
edbInfoList = append(edbInfoList, nv)
|
|
|
}
|
|
@@ -3363,6 +3366,8 @@ func (this *EdbInfoController) EdbInfoFilter() {
|
|
|
edbInfoListLen := len(edbInfoList)
|
|
|
|
|
|
for i := 0; i < edbInfoListLen; i++ {
|
|
|
+ // 时间转格式
|
|
|
+ edbInfoList[i].ConvertToResp()
|
|
|
edbInfoList[i].EdbNameAlias = edbInfoList[i].EdbName
|
|
|
}
|
|
|
|
|
@@ -3526,6 +3531,7 @@ func (this *EdbInfoController) EdbInfoFilterByEs() {
|
|
|
|
|
|
classifyIdList := make([]int, 0)
|
|
|
for i := 0; i < edbInfoListLen; i++ {
|
|
|
+ edbInfoList[i].ConvertToResp()
|
|
|
edbInfoList[i].EdbNameAlias = edbInfoList[i].EdbName
|
|
|
classifyIdList = append(classifyIdList, edbInfoList[i].ClassifyId)
|
|
|
}
|
|
@@ -3701,6 +3707,7 @@ func (this *EdbInfoController) EdbInfoFilter2() {
|
|
|
edbInfoListLen := len(edbInfoList)
|
|
|
|
|
|
for i := 0; i < edbInfoListLen; i++ {
|
|
|
+ edbInfoList[i].ConvertToResp()
|
|
|
edbInfoList[i].EdbNameAlias = edbInfoList[i].EdbName
|
|
|
}
|
|
|
|
|
@@ -3738,6 +3745,9 @@ func searchEdbInfoFilter(condition string, pars []interface{}, i int, ch chan ma
|
|
|
searchWait.Done()
|
|
|
}()
|
|
|
newEdbInfoList, err := data_manage.GetEdbInfoFilter(condition, pars)
|
|
|
+ for _, v := range newEdbInfoList {
|
|
|
+ v.ConvertToResp()
|
|
|
+ }
|
|
|
newEdbInfoListMap[i] = newEdbInfoList
|
|
|
return
|
|
|
}
|
|
@@ -4913,6 +4923,7 @@ func (this *EdbInfoController) AllEdbInfoByEs() {
|
|
|
|
|
|
classifyIdList := make([]int, 0)
|
|
|
for i := 0; i < edbInfoListLen; i++ {
|
|
|
+ edbInfoList[i].ConvertToResp()
|
|
|
edbInfoList[i].EdbNameAlias = edbInfoList[i].EdbName
|
|
|
classifyIdList = append(classifyIdList, edbInfoList[i].ClassifyId)
|
|
|
}
|
|
@@ -5509,6 +5520,7 @@ func (this *EdbInfoController) EdbChartList() {
|
|
|
} else {
|
|
|
classifyIdList := make([]int, 0)
|
|
|
for _, v := range list {
|
|
|
+ v.ConvertToResp()
|
|
|
classifyIdList = append(classifyIdList, v.ClassifyId)
|
|
|
}
|
|
|
|