company_product_log.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package company
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CompanyProductLog struct {
  7. Id int `orm:"column(id);pk"`
  8. CompanyProductId int `description:"产品id"`
  9. CompanyId int `description:"客户id"`
  10. ProductId int `description:"产品id"`
  11. ProductName string `description:"产品名称"`
  12. CompanyName string `description:"客户名称"`
  13. Source string `description:"来源"`
  14. Reasons string `description:"新增理由"`
  15. Status string `description:"客户状态"`
  16. IndustryId int `description:"行业id"`
  17. IndustryName string `description:"行业名称"`
  18. SellerId int `description:"所属销售id"`
  19. SellerName string `description:"所属销售名称"`
  20. GroupId int `description:"所属销售分组id"`
  21. DepartmentId int `description:"所属销售部门id"`
  22. IsSuspend int `description:"1:暂停,0:启用"`
  23. SuspendTime time.Time `description:"暂停时间"`
  24. FreezeTime time.Time `description:"冻结时间"`
  25. Remark string `description:"备注信息"`
  26. StartDate string `description:"开始日期"`
  27. EndDate string `description:"结束日期"`
  28. CreateTime time.Time `description:"创建时间"`
  29. ModifyTime time.Time `description:"修改时间"`
  30. LoseReason string `description:"流失原因"`
  31. LossTime time.Time `description:"流失时间"`
  32. LogType string `description:"日志类型"`
  33. LogCreateTime time.Time `description:"日志创建时间"`
  34. AdminId int `description:"操作人id"`
  35. ApproveStatus string `description:"审批状态:'审批中','通过','驳回'"`
  36. FreezeStartDate string `description:"冻结开始日期"`
  37. FreezeEndDate string `description:"冻结结束日期"`
  38. Scale string `description:"管理规模,空不填,1::50亿以下,2:50~100亿,3:100亿以上。"`
  39. }
  40. //新增客户产品
  41. func AddCompanyProductLog(item *CompanyProductLog) (err error) {
  42. o := orm.NewOrm()
  43. _, err = o.Insert(item)
  44. return
  45. }