buss_attr.go 434 B

12345678910111213141516
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/job/main/workflow/model"
  5. "go-common/library/log"
  6. )
  7. // BusinessAttr .
  8. func (d *Dao) BusinessAttr(c context.Context) (res []*model.BusinessAttr, err error) {
  9. if err = d.ReadORM.Table("workflow_business_attr").Select("id, bid, name, deal_type, expire_time, assign_type, assign_max, group_type").Find(&res).Error; err != nil {
  10. log.Error("d.BusinessAttr error(%v)", err)
  11. }
  12. return
  13. }