|
@@ -339,7 +339,7 @@ func SaveCalendarEdbInfoRelation(chartPermissionId int, matterDate string, editM
|
|
|
}
|
|
|
|
|
|
// GetEdbRelationList 获取指标引用列表
|
|
|
-func GetEdbRelationList(source, edbInfoType int, classifyId, sysUserId, frequency, keyword, status string, startSize, pageSize int, sortParam, sortType string) (total int, list []*data_manage.BaseRelationEdbInfo, err error) {
|
|
|
+func GetEdbRelationList(source, edbType int, classifyId, sysUserId, frequency, keyword, status string, startSize, pageSize int, sortParam, sortType string) (total int, list []*data_manage.BaseRelationEdbInfo, err error) {
|
|
|
var pars []interface{}
|
|
|
var condition string
|
|
|
|
|
@@ -358,12 +358,9 @@ func GetEdbRelationList(source, edbInfoType int, classifyId, sysUserId, frequenc
|
|
|
pars = append(pars, source)
|
|
|
}
|
|
|
|
|
|
- if edbInfoType == 1 { //预测指标
|
|
|
- condition += ` AND e.edb_info_type = ? `
|
|
|
- pars = append(pars, edbInfoType)
|
|
|
- } else if edbInfoType == 2 { //计算指标
|
|
|
- condition += ` AND e.edb_type = ? `
|
|
|
- pars = append(pars, edbInfoType)
|
|
|
+ if edbType == 2 { //计算指标
|
|
|
+ condition += ` AND e.edb_type = ? AND e.edb_info_type = 0`
|
|
|
+ pars = append(pars, edbType)
|
|
|
}
|
|
|
|
|
|
if isStop >= 0 {
|