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,
|
||||
commandYear: v.commandYear,
|
||||
commandId: v.commandId,
|
||||
salaryLevel: salary.salaryLevel && salary.salaryLevelNew ? salary.salaryLevelNew : salary.salaryLevel,
|
||||
})
|
||||
.then(async () => {
|
||||
const before = null;
|
||||
|
|
|
|||
|
|
@ -1570,11 +1570,18 @@ export class SalaryPeriodController extends Controller {
|
|||
type: body.type == null ? "" : `${body.type.toUpperCase()}`,
|
||||
})
|
||||
.andWhere(
|
||||
body.isRetire != null
|
||||
? body.isRetire == "1"
|
||||
? `profile.isRetired = true`
|
||||
: `profile.isRetired = false`
|
||||
: "1=1",
|
||||
// body.isRetire != null
|
||||
// ? body.isRetire == "1"
|
||||
// ? `profile.isRetired = true`
|
||||
// : `profile.isRetired = false`
|
||||
// : "1=1",
|
||||
body.isRetire == null
|
||||
? `profile.isRetired = false`
|
||||
: body.isRetire == "1"
|
||||
? `profile.isRetired = true`
|
||||
: body.isRetire == "0"
|
||||
? `profile.isRetired = false`
|
||||
: "1=1",
|
||||
)
|
||||
.andWhere({
|
||||
salaryOrgId: salaryOrg.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue