|
@@ -1341,29 +1341,17 @@ func GetPredictEdbDataListAll(edbInfo *EdbInfo, order int) (items []*EdbInfoSear
|
|
|
EdbInfoId: edbInfo.EdbInfoId,
|
|
|
}, order)
|
|
|
|
|
|
- return
|
|
|
- if edbInfo.Source == utils.DATA_SOURCE_PREDICT { //普通的预测指标是没有入库数据的,直接往配置里面获取
|
|
|
- items, _, err, _ = GetPredictDataListByPredictEdbInfo(edbInfo, 1, "")
|
|
|
- } else {
|
|
|
- items, err = GetEdbDataListAll(edbInfo.Source, edbInfo.SubSource, FindEdbDataListAllCond{
|
|
|
- EdbInfoId: edbInfo.EdbInfoId,
|
|
|
- }, order)
|
|
|
- }
|
|
|
-
|
|
|
return
|
|
|
}
|
|
|
|
|
|
// GetPredictEdbDataListAllByStartDate 根据开始日期获取该预测指标所有的数据 ,order:1升序,其余值为降序
|
|
|
func GetPredictEdbDataListAllByStartDate(edbInfo *EdbInfo, order int, startDate string) (items []*EdbInfoSearchData, err error) {
|
|
|
- if edbInfo.Source == utils.DATA_SOURCE_PREDICT { //普通的预测指标是没有入库数据的,直接往配置里面获取
|
|
|
- items, _, err, _ = GetPredictDataListByPredictEdbInfo(edbInfo, order, startDate)
|
|
|
- } else {
|
|
|
- items, err = GetEdbDataListAll(edbInfo.Source, edbInfo.SubSource, FindEdbDataListAllCond{
|
|
|
- EdbInfoId: edbInfo.EdbInfoId,
|
|
|
- StartDataTime: startDate,
|
|
|
- StartDataTimeCond: ">=",
|
|
|
- }, order)
|
|
|
- }
|
|
|
+ items, err = GetEdbDataListAll(edbInfo.Source, edbInfo.SubSource, FindEdbDataListAllCond{
|
|
|
+ EdbInfoId: edbInfo.EdbInfoId,
|
|
|
+ StartDataTime: startDate,
|
|
|
+ StartDataTimeCond: ">=",
|
|
|
+ }, order)
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
|