แก้ไขข้อมูลราชการเเละบันทึกไม่ได้รับเงินเดือนเพิ่มเติม
This commit is contained in:
parent
f42f200c8a
commit
1afe64bdd3
8 changed files with 60 additions and 16 deletions
|
|
@ -19,7 +19,7 @@ import HttpError from "../interfaces/http-error";
|
|||
import { ProfileDisciplineHistory } from "../entities/ProfileDisciplineHistory";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
import {
|
||||
CreateProfileDiscipline,
|
||||
CreateProfileEmployeeDiscipline,
|
||||
ProfileDiscipline,
|
||||
UpdateProfileDiscipline,
|
||||
} from "../entities/ProfileDiscipline";
|
||||
|
|
@ -114,7 +114,7 @@ export class ProfileDisciplineEmployeeController extends Controller {
|
|||
@Post()
|
||||
public async newDiscipline(
|
||||
@Request() req: RequestWithUser,
|
||||
@Body() body: CreateProfileDiscipline,
|
||||
@Body() body: CreateProfileEmployeeDiscipline,
|
||||
) {
|
||||
if (!body.profileEmployeeId) {
|
||||
throw new HttpError(HttpStatus.BAD_REQUEST, "กรุณากรอก profileId");
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import HttpError from "../interfaces/http-error";
|
|||
import { ProfileDutyHistory } from "../entities/ProfileDutyHistory";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
import { ProfileEmployee } from "../entities/ProfileEmployee";
|
||||
import { CreateProfileDuty, ProfileDuty, UpdateProfileDuty } from "../entities/ProfileDuty";
|
||||
import { CreateProfileEmployeeDuty, ProfileDuty, UpdateProfileDuty } from "../entities/ProfileDuty";
|
||||
|
||||
@Route("api/v1/org/profile/duty")
|
||||
@Tags("ProfileDuty")
|
||||
|
|
@ -106,7 +106,7 @@ export class ProfileDutyController extends Controller {
|
|||
}
|
||||
|
||||
@Post()
|
||||
public async newDuty(@Request() req: RequestWithUser, @Body() body: CreateProfileDuty) {
|
||||
public async newDuty(@Request() req: RequestWithUser, @Body() body: CreateProfileEmployeeDuty) {
|
||||
if (!body.profileEmployeeId) {
|
||||
throw new HttpError(HttpStatus.BAD_REQUEST, "กรุณากรอก profileId");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import {
|
|||
import { AppDataSource } from "../database/data-source";
|
||||
import {
|
||||
ProfileLeaveHistory,
|
||||
CreateProfileLeave,
|
||||
CreateProfileEmployeeLeave,
|
||||
ProfileLeave,
|
||||
UpdateProfileLeave,
|
||||
} from "../entities/ProfileLeave";
|
||||
|
|
@ -157,7 +157,7 @@ export class ProfileLeaveController extends Controller {
|
|||
}
|
||||
|
||||
@Post()
|
||||
public async newLeave(@Request() req: RequestWithUser, @Body() body: CreateProfileLeave) {
|
||||
public async newLeave(@Request() req: RequestWithUser, @Body() body: CreateProfileEmployeeLeave) {
|
||||
if (!body.profileEmployeeId) {
|
||||
throw new HttpError(HttpStatus.BAD_REQUEST, "กรุณากรอก profileId");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,11 @@ import HttpError from "../interfaces/http-error";
|
|||
import { ProfileNopaidHistory } from "../entities/ProfileNopaidHistory";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
import { ProfileEmployee } from "../entities/ProfileEmployee";
|
||||
import { CreateProfileNopaid, ProfileNopaid, UpdateProfileNopaid } from "../entities/ProfileNopaid";
|
||||
import {
|
||||
CreateProfileEmployeeNopaid,
|
||||
ProfileNopaid,
|
||||
UpdateProfileNopaid,
|
||||
} from "../entities/ProfileNopaid";
|
||||
|
||||
@Route("api/v1/org/profile/nopaid")
|
||||
@Tags("ProfileNopaid")
|
||||
|
|
@ -83,7 +87,10 @@ export class ProfileNopaidController extends Controller {
|
|||
}
|
||||
|
||||
@Post()
|
||||
public async newNopaid(@Request() req: RequestWithUser, @Body() body: CreateProfileNopaid) {
|
||||
public async newNopaid(
|
||||
@Request() req: RequestWithUser,
|
||||
@Body() body: CreateProfileEmployeeNopaid,
|
||||
) {
|
||||
if (!body.profileEmployeeId) {
|
||||
throw new HttpError(HttpStatus.BAD_REQUEST, "กรุณากรอก profileId");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue