เงินเดือนลูกจ้าง
This commit is contained in:
parent
d18d28cb5b
commit
2ab006331f
2 changed files with 8 additions and 6 deletions
|
|
@ -3368,11 +3368,12 @@ export class ProfileEmployeeController extends Controller {
|
||||||
.where((qb) => {
|
.where((qb) => {
|
||||||
if (body.rootId) {
|
if (body.rootId) {
|
||||||
qb.andWhere("employeePosMaster.orgRootId = :rootId", { rootId: body.rootId });
|
qb.andWhere("employeePosMaster.orgRootId = :rootId", { rootId: body.rootId });
|
||||||
|
} else {
|
||||||
|
qb.andWhere("employeePosMaster.orgRevisionId = :orgRevisionId", {
|
||||||
|
orgRevisionId: findRevision?.id,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
qb.andWhere("employeePosMaster.current_holderId IS NOT NULL");
|
qb.andWhere("employeePosMaster.current_holderId IS NOT NULL");
|
||||||
qb.andWhere("employeePosMaster.orgRevisionId = :orgRevisionId", {
|
|
||||||
orgRevisionId: findRevision?.id,
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.andWhere(
|
.andWhere(
|
||||||
new Brackets((qb) => {
|
new Brackets((qb) => {
|
||||||
|
|
|
||||||
|
|
@ -2686,11 +2686,12 @@ export class ProfileEmployeeTempController extends Controller {
|
||||||
.where((qb) => {
|
.where((qb) => {
|
||||||
if (body.rootId) {
|
if (body.rootId) {
|
||||||
qb.andWhere("employeePosMaster.orgRootId = :rootId", { rootId: body.rootId });
|
qb.andWhere("employeePosMaster.orgRootId = :rootId", { rootId: body.rootId });
|
||||||
|
} else {
|
||||||
|
qb.andWhere("employeePosMaster.orgRevisionId = :orgRevisionId", {
|
||||||
|
orgRevisionId: findRevision?.id,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
qb.andWhere("employeePosMaster.current_holderId IS NOT NULL");
|
qb.andWhere("employeePosMaster.current_holderId IS NOT NULL");
|
||||||
qb.andWhere("employeePosMaster.orgRevisionId = :orgRevisionId", {
|
|
||||||
orgRevisionId: findRevision?.id,
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.andWhere(
|
.andWhere(
|
||||||
new Brackets((qb) => {
|
new Brackets((qb) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue