@@ -655,6 +655,12 @@ func (c *EdbInfoController) SaveRelationEdbRefreshStatus() {
}
switch req.Source {
case utils.DATA_SOURCE_MYSTEEL_CHEMICAL, utils.DATA_SOURCE_WIND: // wind
+ case -1:
+ req.Source = 0
+ req.EdbInfoType = 1
+ case -2:
+ req.EdbInfoType = 2
default:
br.Msg = "暂不支持设置其他来源的指标"
return
@@ -73,6 +73,14 @@ func (c *EdbInfoRelationController) RelationEdbList() {
if currentIndex <= 0 {
currentIndex = 1
+ if source == -1 {
+ edbInfoType = 1
+ source = 0
+ }
+ if source == -2 {
+ edbInfoType = 2
startSize = utils.StartIndex(currentIndex, pageSize)
total, list, err := data.GetEdbRelationList(source, edbInfoType, classifyId, sysUserId, frequency, keyword, status, startSize, pageSize, sortParam, sortType)