|
@@ -142,7 +142,7 @@ func GetAllEdbDataList(edbInfoId, source, subSource int) (existDataList []*EdbDa
|
|
|
fmt.Println("dataTableName:", dataTableName)
|
|
|
sql := `SELECT * FROM %s WHERE edb_info_id=? order by data_time asc`
|
|
|
sql = fmt.Sprintf(sql, dataTableName)
|
|
|
- err = global.DEFAULT_DmSQL.Raw(sql, edbInfoId).Scan(&existDataList).Error
|
|
|
+ err = global.DEFAULT_DmSQL.Raw(sql, edbInfoId).Find(&existDataList).Error
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -152,7 +152,7 @@ func GetAllEdbDataListByTo(to *gorm.DB, edbInfoId, source, subSource int) (exist
|
|
|
fmt.Println("dataTableName:", dataTableName)
|
|
|
sql := `SELECT * FROM %s WHERE edb_info_id=? order by data_time asc`
|
|
|
sql = fmt.Sprintf(sql, dataTableName)
|
|
|
- err = to.Raw(sql, edbInfoId).Scan(&existDataList).Error
|
|
|
+ err = to.Raw(sql, edbInfoId).Find(&existDataList).Error
|
|
|
return
|
|
|
}
|
|
|
|