fix
This commit is contained in:
parent
8b40eb0ad5
commit
f8ba8004b3
1 changed files with 6 additions and 1 deletions
|
|
@ -1643,7 +1643,7 @@ export class ProfileEmployeeTempController extends Controller {
|
|||
)
|
||||
|
||||
if (sortBy) {
|
||||
if(sortBy == "posLevel"){
|
||||
if(sortBy == "posLevel"){
|
||||
query = query.orderBy(
|
||||
`posLevel.posLevelName`,
|
||||
descending ? "DESC" : "ASC"
|
||||
|
|
@ -1653,6 +1653,11 @@ export class ProfileEmployeeTempController extends Controller {
|
|||
`posType.posTypeName`,
|
||||
descending ? "DESC" : "ASC"
|
||||
);
|
||||
}else if(sortBy == "govAge"){
|
||||
query = query.orderBy(
|
||||
`profileEmployee.dateAppoint`,
|
||||
descending ? "DESC" : "ASC"
|
||||
);
|
||||
}else{
|
||||
query = query.orderBy(
|
||||
`profileEmployee.${sortBy}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue