| | |
| | | return ecode.OK |
| | | } |
| | | |
| | | func (SContractService) GetServiceContractList(params request.GetServiceContractList) ([]*model.ServiceContract, int64, int) { |
| | | func (SContractService) GetServiceContractList(params request.GetServiceContractList, memberIds []int) ([]*model.ServiceContract, int64, int) { |
| | | // get contact list |
| | | contacts, total, err := model.NewServiceContractSearch(). |
| | | SetKeyword(params.Keyword). |
| | |
| | | SetQuotationId(params.QuotationId). |
| | | SetSaleChanceId(params.SaleChanceId). |
| | | SetContactId(params.ContactId). |
| | | SetMemberIds(memberIds). |
| | | SetPreload(true). |
| | | Find() |
| | | if err != nil { |