report_state_record.go 627 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type ReportStateRecord struct {
  7. Id int `orm:"column(id)" description:"Id"`
  8. ReportId int // 研报id
  9. ReportType int // 报告类型'报告类型:1中文研报2智能研报'
  10. State int // 状态:1-未提交 2-待审核 3-驳回 4-审核
  11. AdminId int // 操作人id
  12. AdminName string // 操作人姓名
  13. CreateTime time.Time // 创建时间
  14. }
  15. func AddReportStateRecord(item *ReportStateRecord) (lastId int64, err error) {
  16. o := orm.NewOrmUsingDB("rddp")
  17. lastId, err = o.Insert(item)
  18. return
  19. }