unlimit snap

This commit is contained in:
AdisakKanthawilang 2025-06-25 09:19:31 +07:00
parent 061cb2c835
commit ed84cf19f3

View file

@ -317,6 +317,7 @@ export class OrganizationUnauthorizeController extends Controller {
if (!findRevision) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "not found. OrgRevision");
}
//.chin
// const rootIds = [
// "d7e98989-b5ce-47d6-93c3-ab63ed486348",
// "e0545eca-5d0a-4a1c-8bbd-e3e25c2521db",
@ -325,19 +326,19 @@ export class OrganizationUnauthorizeController extends Controller {
// "eaf65f33-25e9-4956-9dba-5d909f5eb595",
// "a3efed2c-3f4b-476d-95e6-9f7e0585ae25",
// ];
const rootIds = [
"b89a4467-7ee3-4706-8db7-f366555f826c",
"585648a9-e634-43fc-9360-5fd4189136ab",
"d6e3daa0-284a-428f-aa43-0750fa74e974",
"ed3ddcfb-f882-4499-817b-aff73e5be87c",
"f8ce98ca-a691-4c89-abde-875f559afb3a",
];
//.me
// const rootIds = [
// "b89a4467-7ee3-4706-8db7-f366555f826c",
// "585648a9-e634-43fc-9360-5fd4189136ab",
// "d6e3daa0-284a-428f-aa43-0750fa74e974",
// "ed3ddcfb-f882-4499-817b-aff73e5be87c",
// "f8ce98ca-a691-4c89-abde-875f559afb3a",
// ];
const [findPosMaster, total] = await AppDataSource.getRepository(viewPosMaster)
.createQueryBuilder("viewPosMaster")
.where({orgRevisionId: findRevision?.id})
.andWhere("viewPosMaster.rootId IN (:...rootIds)", { rootIds })
// .andWhere("viewPosMaster.rootId IN (:...rootIds)", { rootIds })
.andWhere(
new Brackets((qb) => {
qb.where(
@ -774,7 +775,7 @@ export class OrganizationUnauthorizeController extends Controller {
if (!findRevision) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "not found. OrgRevision");
}
//.chin
// const rootIds = [
// "d7e98989-b5ce-47d6-93c3-ab63ed486348",
// "e0545eca-5d0a-4a1c-8bbd-e3e25c2521db",
@ -783,20 +784,22 @@ export class OrganizationUnauthorizeController extends Controller {
// "eaf65f33-25e9-4956-9dba-5d909f5eb595",
// "a3efed2c-3f4b-476d-95e6-9f7e0585ae25",
// ];
const rootIds = [
"b89a4467-7ee3-4706-8db7-f366555f826c",
"585648a9-e634-43fc-9360-5fd4189136ab",
"d6e3daa0-284a-428f-aa43-0750fa74e974",
"ed3ddcfb-f882-4499-817b-aff73e5be87c",
"f8ce98ca-a691-4c89-abde-875f559afb3a",
];
//.me
// const rootIds = [
// "b89a4467-7ee3-4706-8db7-f366555f826c",
// "585648a9-e634-43fc-9360-5fd4189136ab",
// "d6e3daa0-284a-428f-aa43-0750fa74e974",
// "ed3ddcfb-f882-4499-817b-aff73e5be87c",
// "f8ce98ca-a691-4c89-abde-875f559afb3a",
// ];
const [findPosMaster, total] = await AppDataSource.getRepository(viewEmployeePosMaster)
.createQueryBuilder("viewEmployeePosMaster")
.where({
orgRevisionId: findRevision?.id,
})
.andWhere("viewEmployeePosMaster.rootId IN (:...rootIds)", { rootIds })
// .andWhere("viewEmployeePosMaster.rootId IN (:...rootIds)", { rootIds })
.andWhere(
new Brackets((qb) => {
qb.where(