no message
This commit is contained in:
parent
877a70ef3d
commit
d1cd27287c
1 changed files with 4 additions and 1 deletions
|
|
@ -49,7 +49,10 @@ export class ProfileSalaryEmployeeController extends Controller {
|
|||
|
||||
@Get("{profileId}")
|
||||
public async getSalaryEmployee(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileId);
|
||||
const _record = await this.salaryRepo.findOneBy({ id: profileId });
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_EMP", profileId);
|
||||
}
|
||||
const record = await this.salaryRepo.find({
|
||||
where: { profileEmployeeId: profileId },
|
||||
order: { order: "ASC" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue