jmcj_comein_data.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package models
  2. import "github.com/beego/beego/v2/client/orm"
  3. type RoadshowData struct {
  4. Id int `orm:"column(id);pk;"description:"主键ID"`
  5. Company string `description:"公司名称"`
  6. UserName string `description:"用户名"`
  7. UserPhone string `description:"手机号"`
  8. UserinfoUource string `description:"用户来源"`
  9. AuthInfo string `description:"用户参会鉴权"`
  10. GuestUsername string `description:"嘉宾名称, 多个用,隔开"`
  11. FirstWatchTime string `description:"首次观看时间"`
  12. LastWatchTime string `description:"最后观看时间"`
  13. RoadshowId string `description:"路演ID"`
  14. RoadshowTitle string `description:"路演标题"`
  15. RoadshowBeginTime string `description:"路演开始时间"`
  16. RoadshowEndTime string `description:"路演结束时间"`
  17. JoinTime int `description:"参与时长"`
  18. JoinType int `description:"参与方式, 1网络, 2电话"`
  19. DataType int `description:"数据类型: 1直播, 2回放"`
  20. Occupation string `description:"职位"`
  21. UseridEntity int `description:"参会者身份. 1:主讲人, 2:主持人, 3:嘉宾, 4:普通参会者, 5:联席主讲人, 6:会议助理"`
  22. CrmCompanyMapStatusId int `description:"转换后的对应状态信息:1=正式客户, 2=曾使用客户, 3=其他"`
  23. }
  24. // 获取列表
  25. func GetJmcjRoadshowDataList(condition string, pars []interface{}) (list []*RoadshowData, err error) {
  26. if condition == "" {
  27. return
  28. }
  29. o := orm.NewOrmUsingDB("comein_data")
  30. sql := `SELECT * FROM roadshow_data WHERE 1= 1 `
  31. if condition != "" {
  32. sql += condition
  33. }
  34. _, err = o.Raw(sql, pars).QueryRows(&list)
  35. return
  36. }