report_selection_subject_history.go 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxReportSelectionSubjectHistory struct {
  7. Id int `orm:"column(id);pk"`
  8. ArticleId int `description:"文章ID"`
  9. UserId int `description:"用户ID"`
  10. CreateTime time.Time `description:"创建时间"`
  11. ModifyTime time.Time `description:"修改时间"`
  12. Mobile string `description:"手机号"`
  13. Email string `description:"邮箱"`
  14. CompanyId int `description:"公司id"`
  15. CompanyName string `description:"公司名称"`
  16. IndustrialSubjectId string `description:"标的ID"`
  17. IndustrialManagementId int `description:"产业ID"`
  18. ThirdId int `description:"类似产业、标的的三方ID"`
  19. }
  20. // 列表
  21. func GetCygxReportSelectionSubjectHistoryList(articleId int) (items []*CygxReportSelectionSubjectHistory, err error) {
  22. o := orm.NewOrmUsingDB("hz_cygx")
  23. sql := `SELECT *
  24. FROM
  25. cygx_report_selection_subject_history AS l
  26. WHERE l.article_id = ? `
  27. _, err = o.Raw(sql, articleId).QueryRows(&items)
  28. return
  29. }