go-common/app/job/main/growup/service/income/business_order.go
2019-04-22 18:49:16 +08:00

24 lines
427 B
Go

package income
import "context"
// GetBusinessOrders get business orders
func (s *Service) GetBusinessOrders(c context.Context, limit int64) (result map[int64]bool, err error) {
var id int64
result = make(map[int64]bool)
for {
var m map[int64]bool
id, m, err = s.dao.BusinessOrders(c, id, limit)
if err != nil {
return
}
if len(m) == 0 {
break
}
for k, v := range m {
result[k] = v
}
}
return
}