permisstion ทะเบียนประวัติ(ที่ระบบอื่นๆ)
This commit is contained in:
parent
ff8917195f
commit
4bee31e74e
18 changed files with 496 additions and 5 deletions
|
|
@ -81,6 +81,16 @@ export class ProfileSalaryController extends Controller {
|
|||
return new HttpSuccess(record);
|
||||
}
|
||||
|
||||
@Get("admin/{profileId}")
|
||||
public async getSalaryAdmin(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionGet(req, "SYS_SALARY_OFFICER");
|
||||
const record = await this.salaryRepo.find({
|
||||
where: { profileId: profileId },
|
||||
order: { order: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
}
|
||||
|
||||
@Get("history/{salaryId}")
|
||||
@Example({
|
||||
status: 200,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue