fix
This commit is contained in:
parent
8d492370b6
commit
f9de77f533
1 changed files with 2 additions and 2 deletions
|
|
@ -855,7 +855,7 @@ export class SalaryPeriodController extends Controller {
|
|||
|
||||
const amountFullType = await this.salaryProfileRepository.count({
|
||||
where: {
|
||||
salaryOrgId: salaryOrg.id,
|
||||
salaryOrgId: salaryOrg?.id,
|
||||
type: "FULL",
|
||||
},
|
||||
});
|
||||
|
|
@ -872,7 +872,7 @@ export class SalaryPeriodController extends Controller {
|
|||
.createQueryBuilder("salaryProfile")
|
||||
.select("SUM(salaryProfile.amountUse)", "totalAmount")
|
||||
.where({
|
||||
salaryOrgId: salaryOrg.id,
|
||||
salaryOrgId: salaryOrg?.id,
|
||||
type: In(["HAFT", "FULL", "FULLHAFT"]),
|
||||
})
|
||||
.getRawOne();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue