cygx_report_mapping.go 474 B

123456789101112131415
  1. package data_manage
  2. import "github.com/beego/beego/v2/client/orm"
  3. type CygxReportMapping struct {
  4. ChartPermissionId int `description:"表chart_permission中id"`
  5. CategoryId int `description:"权益文章对应分类,cygx_article"`
  6. }
  7. func CygxReportMappingist() (items []*CygxReportMapping, err error) {
  8. o := orm.NewOrmUsingDB("hz_cygx")
  9. sql := `SELECT chart_permission_id, category_id FROM cygx_report_mapping `
  10. _, err = o.Raw(sql).QueryRows(&items)
  11. return
  12. }