ค้นหาผังลูกจ้าง
This commit is contained in:
parent
2a49275e55
commit
074bbe2d2f
1 changed files with 2 additions and 10 deletions
|
|
@ -216,18 +216,10 @@ export class SalaryEmployeeController extends Controller {
|
|||
@Query("pageSize") pageSize: number = 10,
|
||||
@Query("keyword") keyword?: string,
|
||||
) {
|
||||
let whereClause : any = {};
|
||||
let whereClause: any = {};
|
||||
if (keyword != undefined && keyword !== "") {
|
||||
whereClause = {
|
||||
where: [
|
||||
{ name: Like(`%${keyword}%`) },
|
||||
{ group: Like(`%${keyword}%`) },
|
||||
{ isActive: Like(`%${keyword}%`) },
|
||||
{ date: Like(`%${keyword}%`) },
|
||||
{ startDate: Like(`%${keyword}%`) },
|
||||
{ endDate: Like(`%${keyword}%`) },
|
||||
{ details: Like(`%${keyword}%`) },
|
||||
]
|
||||
where: [{ name: Like(`%${keyword}%`) }, { group: Like(`%${keyword}%`) }],
|
||||
};
|
||||
}
|
||||
const [salary, total] = await this.salaryEmployeeRepository.findAndCount({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue