add parth admin history
This commit is contained in:
parent
74e64176e6
commit
4b6fd79264
23 changed files with 309 additions and 50 deletions
|
|
@ -77,8 +77,8 @@ export class ProfileHonorEmployeeTempController extends Controller {
|
|||
return new HttpSuccess(record);
|
||||
}
|
||||
|
||||
@Get("history/{honorId}")
|
||||
public async honorHistory(@Path() honorId: string, @Request() req: RequestWithUser) {
|
||||
@Get("admin/history/{honorId}")
|
||||
public async honorAdminHistory(@Path() honorId: string, @Request() req: RequestWithUser) {
|
||||
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.honorHistoryRepo.find({
|
||||
where: {
|
||||
|
|
@ -89,6 +89,17 @@ export class ProfileHonorEmployeeTempController extends Controller {
|
|||
return new HttpSuccess(record);
|
||||
}
|
||||
|
||||
@Get("history/{honorId}")
|
||||
public async honorHistory(@Path() honorId: string) {
|
||||
const record = await this.honorHistoryRepo.find({
|
||||
where: {
|
||||
profileHonorId: honorId,
|
||||
},
|
||||
order: { createdAt: "DESC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
}
|
||||
|
||||
@Post()
|
||||
public async newHonor(@Request() req: RequestWithUser, @Body() body: CreateProfileEmployeeHonor) {
|
||||
await new permission().PermissionUpdate(req, "SYS_REGISTRY_TEMP");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue