| | |
| | | type ( |
| | | SalesLeads struct { |
| | | Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | Name string `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:公司名称"` |
| | | Name string `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:客户名称"` |
| | | IsDeleted bool `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:是否删除"` |
| | | Number string `json:"number" gorm:"column:number;type:varchar(255);comment:销售线索编号"` |
| | | ContactName string `json:"contact_name" gorm:"column:contact_name;type:varchar(255);comment:联系人姓名"` |
| | |
| | | |
| | | case int: |
| | | if key == "member_id" { |
| | | db = db.Where("member_id = ?", v) |
| | | db = db.Where("sales_leads.member_id = ?", v) |
| | | } |
| | | } |
| | | } |