feat: search dept
This commit is contained in:
parent
aaba8dc173
commit
8ad1a48c60
|
@ -28,16 +28,18 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|||
|
||||
# see https://pnpm.io/docker
|
||||
FROM base AS prod-deps
|
||||
RUN pnpm config set registry https://registry.npmmirror.com
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
||||
|
||||
FROM base AS build
|
||||
RUN pnpm config set registry https://registry.npmmirror.com
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN pnpm run build
|
||||
|
||||
|
||||
# mirror acceleration
|
||||
# RUN npm config set registry https://registry.npmmirror.com
|
||||
# RUN pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
# RUN npm config rm proxy && npm config rm https-proxy
|
||||
|
||||
FROM base
|
||||
|
|
|
@ -71,6 +71,7 @@ export class UserService {
|
|||
const user: UserEntity = await this.userRepository
|
||||
.createQueryBuilder('user')
|
||||
.leftJoinAndSelect('user.roles', 'role')
|
||||
.leftJoinAndSelect('user.dept', 'dept')
|
||||
.where(`user.id = :uid`, { uid })
|
||||
.getOne();
|
||||
|
||||
|
|
Loading…
Reference in New Issue