|
@@ -79,6 +79,9 @@ func (l *GetWxsLogic) GetWxs(req *types.WxReq) (resp *types.WxResp, err error) {
|
|
if organizationId != 0 {
|
|
if organizationId != 0 {
|
|
predicates = append(predicates, wx.OrganizationID(organizationId))
|
|
predicates = append(predicates, wx.OrganizationID(organizationId))
|
|
}
|
|
}
|
|
|
|
+ if req.Wxid != nil {
|
|
|
|
+ predicates = append(predicates, wx.Wxid(*req.Wxid))
|
|
|
|
+ }
|
|
wxs, err := l.svcCtx.DB.Wx.Query().Where(predicates...).All(l.ctx)
|
|
wxs, err := l.svcCtx.DB.Wx.Query().Where(predicates...).All(l.ctx)
|
|
|
|
|
|
if err != nil {
|
|
if err != nil {
|