product_interior_msg.go 966 B

12345678910111213141516171819202122232425262728293031
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxProductInteriorMsg struct {
  7. Id int `orm:"column(id);pk"`
  8. ProductInteriorId int
  9. UserId int
  10. CreateTime time.Time
  11. Mobile string `description:"手机号"`
  12. Email string `description:"邮箱"`
  13. CompanyId int `description:"公司id"`
  14. CompanyName string `description:"公司名称"`
  15. ModifyTime time.Time `description:"修改时间"`
  16. RealName string `description:"用户实际名称"`
  17. SellerName string `description:"所属销售"`
  18. }
  19. // 列表
  20. func GetCygxProductInteriorMsgList(condition string, pars []interface{}) (items []*CygxProductInteriorMsg, err error) {
  21. o := orm.NewOrmUsingDB("hz_cygx")
  22. sql := `SELECT * FROM cygx_product_interior_msg as art WHERE 1= 1 `
  23. if condition != "" {
  24. sql += condition
  25. }
  26. _, err = o.Raw(sql, pars).QueryRows(&items)
  27. return
  28. }