query.go 260 B

12345678
  1. package chart_series
  2. import "hongze/hongze_yb/global"
  3. func GetChartSeriesByChartInfoId(chartInfoId int) (items []*ChartSeries, err error) {
  4. err = global.MYSQL["data"].Model(ChartSeries{}).Where("chart_info_id = ?", chartInfoId).Scan(&items).Error
  5. return
  6. }