|
@@ -119,6 +119,15 @@ func GetAllExcelEdbMappingByExcelInfoId(excelInfoId int) (items []*ExcelEdbMappi
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// GetExcelEdbMappingByEdbInfoIdAndSource 根据指标id获取配置关系
|
|
|
+func GetExcelEdbMappingByEdbInfoIdAndSource(edbInfoId int, sources []int) (items []*ExcelEdbMapping, err error) {
|
|
|
+ o := orm.NewOrmUsingDB("data")
|
|
|
+ sql := ` SELECT * FROM excel_edb_mapping WHERE 1=1 AND edb_info_id = ? AND source in (` + utils.GetOrmInReplace(len(sources)) + `) `
|
|
|
+
|
|
|
+ _, err = o.Raw(sql, edbInfoId, sources).QueryRows(&items)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
// DeleteCustomAnalysisExcelEdbMappingByEdbInfoId
|
|
|
// @Description: 根据指标id删除与自定义分析表格的关系
|
|
|
// @author: Roc
|