liujiandao
2023-10-17 d4bf53dd19a45ef09a367babcf7a2ac04ae1d08f
service/salesReturn.go
@@ -3,6 +3,7 @@
import (
   "aps_crm/constvar"
   "aps_crm/model"
   "aps_crm/model/request"
   "aps_crm/pkg/ecode"
   "github.com/shopspring/decimal"
   "gorm.io/gorm"
@@ -123,12 +124,15 @@
   return ecode.OK
}
func (SalesReturnService) GetSalesReturnList(page, pageSize int, keywordType constvar.SalesReturnKeywordType, keyword string, memberIds []int) ([]*model.SalesReturn, int64, int) {
func (SalesReturnService) GetSalesReturnList(params request.GetSalesReturnList, memberIds []int) ([]*model.SalesReturn, int64, int) {
   // get contact list
   contacts, total, err := model.NewSalesReturnSearch().
      SetKeywordType(keywordType).
      SetKeyword(keyword).
      SetPage(page, pageSize).
      SetKeywordType(params.KeywordType).
      SetKeyword(params.Keyword).
      SetPage(params.Page, params.PageSize).
      SetSourceId(params.SourceId).
      SetSourceType(params.SourceType).
      SetClientId(params.ClientId).
      SetPreload(true).
      SetMemberIds(memberIds).
      FindAll()