report_mapping_category_group.go 925 B

123456789101112131415161718192021222324252627
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxReportMappingCategoryGroupResp struct {
  7. Id int `orm:"column(id);pk" description:"id"`
  8. ChartPermissionId int `description:"行业ID"`
  9. IdCygx int `description:"表cygx_report_mapping_cygx 主键ID"`
  10. ArticleId int `description:"报告Id"`
  11. CreateTime time.Time `description:"创建时间"`
  12. ModifyTime time.Time `description:"更新时间"`
  13. PermissionType int `description:"1主观,2客观 ,0不限制"`
  14. }
  15. // 列表
  16. func GetCygxReportMappingCategoryGroupList(condition string, pars []interface{}) (items []*CygxReportMappingCategoryGroupResp, err error) {
  17. o := orm.NewOrm()
  18. sql := `SELECT * FROM cygx_report_mapping_category_group as art WHERE 1= 1 `
  19. if condition != "" {
  20. sql += condition
  21. }
  22. _, err = o.Raw(sql, pars).QueryRows(&items)
  23. return
  24. }