query.go 453 B

123456789
  1. package report_ppt_img
  2. import "hongze/hongze_yb/global"
  3. // GetReportPptImgListByReportIdAndReportChapterId 根据报告id和章节ID获取图片
  4. func GetReportPptImgListByReportIdAndReportChapterId(reportId, reportChapterId int) (list []*ReportPptImg, err error) {
  5. err = global.MYSQL["rddp"].Model(ReportPptImg{}).Where("report_id = ? AND report_chapter_id = ? ", reportId, reportChapterId).Order("report_ppt_img_id asc").Scan(&list).Error
  6. return
  7. }