fix
This commit is contained in:
parent
eef29b7564
commit
ffca4ee36d
2 changed files with 13 additions and 5 deletions
|
|
@ -8828,6 +8828,7 @@ export class ReportController extends Controller {
|
||||||
commandNo: v.commandNo,
|
commandNo: v.commandNo,
|
||||||
commandYear: v.commandYear,
|
commandYear: v.commandYear,
|
||||||
commandId: v.commandId,
|
commandId: v.commandId,
|
||||||
|
salaryLevel: salary.salaryLevel && salary.salaryLevelNew ? salary.salaryLevelNew : salary.salaryLevel,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
const before = null;
|
const before = null;
|
||||||
|
|
|
||||||
|
|
@ -1570,11 +1570,18 @@ export class SalaryPeriodController extends Controller {
|
||||||
type: body.type == null ? "" : `${body.type.toUpperCase()}`,
|
type: body.type == null ? "" : `${body.type.toUpperCase()}`,
|
||||||
})
|
})
|
||||||
.andWhere(
|
.andWhere(
|
||||||
body.isRetire != null
|
// body.isRetire != null
|
||||||
? body.isRetire == "1"
|
// ? body.isRetire == "1"
|
||||||
? `profile.isRetired = true`
|
// ? `profile.isRetired = true`
|
||||||
: `profile.isRetired = false`
|
// : `profile.isRetired = false`
|
||||||
: "1=1",
|
// : "1=1",
|
||||||
|
body.isRetire == null
|
||||||
|
? `profile.isRetired = false`
|
||||||
|
: body.isRetire == "1"
|
||||||
|
? `profile.isRetired = true`
|
||||||
|
: body.isRetire == "0"
|
||||||
|
? `profile.isRetired = false`
|
||||||
|
: "1=1",
|
||||||
)
|
)
|
||||||
.andWhere({
|
.andWhere({
|
||||||
salaryOrgId: salaryOrg.id,
|
salaryOrgId: salaryOrg.id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue