| | |
| | | Number string `json:"number" gorm:"column:number;type:varchar(255);comment:合同编号"` |
| | | ContactId int `json:"contactId" gorm:"column:contact_id;type:int;comment:联系人id"` |
| | | ServiceId int `json:"serviceId" gorm:"column:service_id;type:int;comment:客户服务单id"` |
| | | CustomerServiceSheet CustomerServiceSheet `json:"customerServiceSheet" gorm:"foreignKey:ServiceId"` |
| | | MemberId int `json:"memberId" gorm:"column:member_id;type:int;comment:服务人员id"` |
| | | PlanId int `json:"planId" gorm:"column:plan_id;type:int;comment:服务计划id"` |
| | | Satisfaction int `json:"satisfaction" gorm:"column:satisfaction;type:int;comment:满意度"` |
| | |
| | | func (slf *ServiceFollowupSearch) FindAll() ([]*ServiceFollowup, error) { |
| | | var db = slf.build() |
| | | var records = make([]*ServiceFollowup, 0) |
| | | err := db.Find(&records).Error |
| | | err := db.Preload("CustomerServiceSheet").Find(&records).Error |
| | | return records, err |
| | | } |
| | | |