@@ -126,7 +126,7 @@ export class MenuService {
try {
const withoutId = await this.mongoPrismaService.sysMenu.findMany({
where: {
- mId: null,
+ OR: [{ mId: { isSet: false } }, { mId: null }],
},
orderBy: { createTime: 'asc' },
select: { id: true },
@@ -80,7 +80,7 @@ export class RoleService {
const withoutId = await this.mongoPrismaService.sysRole.findMany({
- rid: null,
+ OR: [{ rid: { isSet: false } }, { rid: null }],
@@ -58,7 +58,7 @@ export class UserService {
const withoutId = await this.mongoPrismaService.sysUser.findMany({
- uid: null,
+ OR: [{ uid: { isSet: false } }, { uid: null }],