diff --git a/src/controllers/OrganizationUnauthorizeController.ts b/src/controllers/OrganizationUnauthorizeController.ts index c5f67dee..4510351c 100644 --- a/src/controllers/OrganizationUnauthorizeController.ts +++ b/src/controllers/OrganizationUnauthorizeController.ts @@ -340,6 +340,7 @@ export class OrganizationUnauthorizeController extends Controller { const [findPosMaster, total] = await AppDataSource.getRepository(viewPosMaster) .createQueryBuilder("viewPosMaster") .where({orgRevisionId: findRevision?.id}) + .andWhere({positionIsSelected: true}) // .andWhere("viewPosMaster.rootId IN (:...rootIds)", { rootIds }) .andWhere( new Brackets((qb) => {