go-common/app/admin/ep/melloi/dao/reportgraph.go
2019-04-22 02:59:20 +00:00

17 lines
497 B
Go

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
}