You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
497 B
16 lines
497 B
package dao |
|
|
|
import ( |
|
"go-common/app/admin/ep/melloi/model" |
|
) |
|
|
|
//AddReportGraph add reportGraph |
|
func (d *Dao) AddReportGraph(reportGraph *model.ReportGraph) error { |
|
return d.DB.Create(reportGraph).Error |
|
} |
|
|
|
//QueryReportGraph query reportGraph |
|
func (d *Dao) QueryReportGraph(testNameNicks []string) (reportGraphs []model.ReportGraph, err error) { |
|
err = d.DB.Model(&model.ReportGraph{}).Where(" test_name_nick in (?) ", testNameNicks).Order("elapsd_time asc").Find(&reportGraphs).Error |
|
return |
|
}
|
|
|