|
@@ -88,10 +88,10 @@ func GetNoCustomAnalysisExcelEdbMappingCount(edbInfoId int) (count int, err erro
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-// GetAllExcelEdbMappingByExcelInfoId 根据品种id获取所有的指标
|
|
|
+// GetAllExcelEdbMappingByExcelInfoId 根据excel的id获取所有的指标
|
|
|
func GetAllExcelEdbMappingByExcelInfoId(excelInfoId int) (items []*ExcelEdbMapping, err error) {
|
|
|
o := orm.NewOrmUsingDB("data")
|
|
|
- sql := `SELECT b.* FROM excel_edb_mapping a
|
|
|
+ sql := `SELECT a.* FROM excel_edb_mapping a
|
|
|
WHERE a.excel_info_id = ? ORDER BY a.excel_edb_mapping_id ASC `
|
|
|
_, err = o.Raw(sql, excelInfoId).QueryRows(&items)
|
|
|
return
|