add salary special

This commit is contained in:
kittapath 2025-01-21 11:30:06 +07:00
parent 2ab006331f
commit 6c9b781f76
2 changed files with 17 additions and 4 deletions

View file

@ -7531,11 +7531,13 @@ export class ProfileController extends Controller {
.where((qb) => {
if (body.rootId) {
qb.andWhere("posMaster.orgRootId = :rootId", { rootId: body.rootId });
qb.andWhere("posMaster.current_nextId IS NOT NULL");
} else {
qb.andWhere("posMaster.orgRevisionId = :orgRevisionId", {
orgRevisionId: findRevision?.id,
});
qb.andWhere("posMaster.current_holderId IS NOT NULL");
}
qb.andWhere("posMaster.current_holderId IS NOT NULL");
qb.andWhere("posMaster.orgRevisionId = :orgRevisionId", {
orgRevisionId: findRevision?.id,
});
})
.andWhere(
new Brackets((qb) => {