zhangqian
2023-08-11 e027ac6cb0705ab4eda2a162fb70f4532f24af93
service/serviceOrder.go
@@ -30,13 +30,15 @@
   return ecode.OK
}
func (ServiceOrderService) GetServiceOrderList(page, pageSize int, queryClass constvar.ServiceOrderQueryClass, keywordType constvar.ServiceOrderKeywordType, keyword string) ([]*model.ServiceOrder, int64, int) {
func (ServiceOrderService) GetServiceOrderList(page, pageSize int, queryClass constvar.ServiceOrderQueryClass, keywordType constvar.ServiceOrderKeywordType, keyword string, serviceContractId, salesDetailsId int) ([]*model.ServiceOrder, int64, int) {
   list, total, err := model.NewServiceOrderSearch().
      SetPage(page, pageSize).
      SetKeyword(keyword).
      SetKeywordType(keywordType).
      SetQueryClass(queryClass).
      SetPreload(true).
      SetServiceContractId(serviceContractId).
      SetSalesDetailsId(salesDetailsId).
      Find()
   if err != nil {
      return nil, 0, ecode.DBErr