เกนเงินเดือนลูกจ้าง
This commit is contained in:
parent
8577745a54
commit
ff39403172
10 changed files with 570 additions and 26 deletions
|
|
@ -20,10 +20,10 @@ import HttpStatusCode from "../interfaces/http-status";
|
|||
import HttpError from "../interfaces/http-error";
|
||||
import {
|
||||
CreateSalaryRankEmployee,
|
||||
SalaryRankEmployees,
|
||||
SalaryRankEmployee,
|
||||
UpdateSalaryRankEmployee,
|
||||
} from "../entities/SalaryRankEmployees";
|
||||
import { SalaryEmployees } from "../entities/SalaryEmployees";
|
||||
} from "../entities/SalaryRankEmployee";
|
||||
import { SalaryEmployee } from "../entities/SalaryEmployee";
|
||||
@Route("api/v1/salary/rate/employee")
|
||||
@Tags("SalaryRankEmployee")
|
||||
@Security("bearerAuth")
|
||||
|
|
@ -32,9 +32,9 @@ import { SalaryEmployees } from "../entities/SalaryEmployees";
|
|||
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
||||
)
|
||||
@SuccessResponse(HttpStatusCode.OK, "สำเร็จ")
|
||||
export class SalaryRankEmployeesController extends Controller {
|
||||
private salaryRankEmployeeRepository = AppDataSource.getRepository(SalaryRankEmployees);
|
||||
private salaryEmployeeRepository = AppDataSource.getRepository(SalaryEmployees);
|
||||
export class SalaryRankEmployeeController extends Controller {
|
||||
private salaryRankEmployeeRepository = AppDataSource.getRepository(SalaryRankEmployee);
|
||||
private salaryEmployeeRepository = AppDataSource.getRepository(SalaryEmployee);
|
||||
|
||||
/**
|
||||
* API สร้างอัตราเงินเดือนลูกจ้าง
|
||||
|
|
@ -54,7 +54,7 @@ export class SalaryRankEmployeesController extends Controller {
|
|||
if (!checkSalary) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลผังเงินเดือนนี้");
|
||||
}
|
||||
const salaryRankEmployee = Object.assign(new SalaryRankEmployees(), requestBody);
|
||||
const salaryRankEmployee = Object.assign(new SalaryRankEmployee(), requestBody);
|
||||
salaryRankEmployee.createdUserId = request.user.sub;
|
||||
salaryRankEmployee.createdFullName = request.user.name;
|
||||
salaryRankEmployee.lastUpdateUserId = request.user.sub;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue