作者 yangfu

用户信息修改

@@ -69,7 +69,10 @@ func (l *MiniCompanySearchJoinedLogic) MiniCompanySearchJoined(req *types.Compan @@ -69,7 +69,10 @@ func (l *MiniCompanySearchJoinedLogic) MiniCompanySearchJoined(req *types.Compan
69 return nil, xerr.NewErrMsgErr("公司列表获取失败", err) 69 return nil, xerr.NewErrMsgErr("公司列表获取失败", err)
70 } 70 }
71 } else if req.Flag == 2 { 71 } else if req.Flag == 2 {
72 - total, companyList, err = l.svcCtx.CompanyRepository.Find(l.ctx, conn, queryOptions.MustWithKV("excludeIds", companyJoinedList)) 72 + if len(companyJoinedList) > 0 {
  73 + queryOptions.MustWithKV("excludeIds", companyJoinedList)
  74 + }
  75 + total, companyList, err = l.svcCtx.CompanyRepository.Find(l.ctx, conn, queryOptions)
73 if err != nil { 76 if err != nil {
74 return nil, xerr.NewErrMsgErr("公司列表获取失败", err) 77 return nil, xerr.NewErrMsgErr("公司列表获取失败", err)
75 } 78 }