company_remind_record.go 985 B

123456789101112131415161718192021222324252627282930
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. // CompanyRemindRecord 客户提醒记录
  7. type CompanyRemindRecord struct {
  8. CompanyRemindRecordId int `orm:"column(company_remind_record_id);pk"`
  9. Type int `description:"过期类型,1:1天,2:7天,3:15天;4:30天"`
  10. SellerId int `description:"销售id"`
  11. SellerName string `description:"销售名称"`
  12. CompanyId int `description:"客户id"`
  13. CompanyName string `description:"客户名称"`
  14. Status string `description:"客户状态"`
  15. EndDate string `description:"到期日期"`
  16. UniqueCode string `description:"唯一code"`
  17. CreateTime time.Time
  18. }
  19. // AddMultiCompanyRemindRecord 批量添加客户提醒记录
  20. func AddMultiCompanyRemindRecord(list []*CompanyRemindRecord) (err error) {
  21. if len(list) <= 0 {
  22. return
  23. }
  24. o := orm.NewOrm()
  25. _, err = o.InsertMulti(len(list), list)
  26. return
  27. }