fix profile_development
This commit is contained in:
parent
057bda967f
commit
7430c3c86f
2 changed files with 4 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ export class ProfileDevelopmentController extends Controller {
|
|||
],
|
||||
})
|
||||
public async getDevelopment(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", profileId);
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId);
|
||||
const lists = await this.developmentRepository.find({
|
||||
where: { profileId: profileId },
|
||||
});
|
||||
|
|
@ -91,7 +91,7 @@ export class ProfileDevelopmentController extends Controller {
|
|||
public async developmentHistory(@Path() developmentId: string, @Request() req: RequestWithUser) {
|
||||
const _record = await this.developmentRepository.findOneBy({ id: developmentId });
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
}
|
||||
const record = await this.developmentHistoryRepository.find({
|
||||
where: { profileDevelopmentId: developmentId },
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
|
|||
|
||||
@Get("{profileId}")
|
||||
public async getDevelopment(@Path() profileId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const lists = await this.developmentRepository.find({
|
||||
where: { profileEmployeeId: profileId },
|
||||
});
|
||||
|
|
@ -56,7 +56,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
|
|||
|
||||
@Get("history/{developmentId}")
|
||||
public async developmentHistory(@Path() developmentId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.developmentHistoryRepository.find({
|
||||
where: { profileDevelopmentId: developmentId },
|
||||
order: { createdAt: "DESC" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue