作者 linmadan

修复推送人员缺失bug

@@ -31,7 +31,11 @@ func (subscriber *MmmOpenApiServiceServiceSubscriber) HandleEvent(domainEvent co @@ -31,7 +31,11 @@ func (subscriber *MmmOpenApiServiceServiceSubscriber) HandleEvent(domainEvent co
31 employeeRepository = repository 31 employeeRepository = repository
32 } 32 }
33 uids := make([]int64, 0) 33 uids := make([]int64, 0)
34 - if _, employees, err := employeeRepository.Find(map[string]interface{}{"companyId": taskReleasedEvent.CompanyId}); err != nil { 34 + if _, employees, err := employeeRepository.Find(map[string]interface{}{
  35 + "companyId": taskReleasedEvent.CompanyId,
  36 + "offset": 0,
  37 + "limit": 0,
  38 + }); err != nil {
35 fmt.Println(err.Error()) 39 fmt.Println(err.Error())
36 return nil 40 return nil
37 } else { 41 } else {