no message
This commit is contained in:
parent
3c2ce93724
commit
c88a83f43e
1 changed files with 11 additions and 1 deletions
|
|
@ -266,8 +266,18 @@ export class DevelopmentOfficerHistoryController extends Controller {
|
||||||
.skip((page - 1) * pageSize)
|
.skip((page - 1) * pageSize)
|
||||||
.take(pageSize)
|
.take(pageSize)
|
||||||
.getManyAndCount();
|
.getManyAndCount();
|
||||||
|
|
||||||
|
const formattedData = development.map(item => ({
|
||||||
|
id: item.id,
|
||||||
|
citizenId: item.citizenId,
|
||||||
|
fullName: item.prefix+item.firstName+" "+item.lastName,
|
||||||
|
position: item.position,
|
||||||
|
posType: item.posType.posTypeName,
|
||||||
|
posLevel: item.posLevel.posLevelName,
|
||||||
|
projectName: item.development.projectName,
|
||||||
|
}));
|
||||||
|
|
||||||
return new HttpSuccess({ data: development, total });
|
return new HttpSuccess({ data: formattedData, total });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue