...
|
...
|
@@ -40,6 +40,9 @@ func (l *MiniUserAuditListLogic) MiniUserAuditList(req *types.UserSearchRequest) |
|
|
MustWithKV("accountFrom", []string{domain.AccountFromSearchJoin})
|
|
|
if req.AuditFlag != nil && *req.AuditFlag >= 0 {
|
|
|
queryOptions.MustWithKV("auditStatus", []int{*req.AuditFlag})
|
|
|
if *req.AuditFlag == 2 {
|
|
|
queryOptions.MustWithKV("unscoped", true)
|
|
|
}
|
|
|
}
|
|
|
if total, users, err = l.svcCtx.UserRepository.Find(l.ctx, conn, queryOptions); err != nil {
|
|
|
return nil, xerr.NewErrMsgErr("查询审核列表失败", err)
|
...
|
...
|
|