reportgraph.go 497 B

12345678910111213141516
  1. package dao
  2. import (
  3. "go-common/app/admin/ep/melloi/model"
  4. )
  5. //AddReportGraph add reportGraph
  6. func (d *Dao) AddReportGraph(reportGraph *model.ReportGraph) error {
  7. return d.DB.Create(reportGraph).Error
  8. }
  9. //QueryReportGraph query reportGraph
  10. func (d *Dao) QueryReportGraph(testNameNicks []string) (reportGraphs []model.ReportGraph, err error) {
  11. err = d.DB.Model(&model.ReportGraph{}).Where(" test_name_nick in (?) ", testNameNicks).Order("elapsd_time asc").Find(&reportGraphs).Error
  12. return
  13. }