no message

This commit is contained in:
Bright 2024-04-03 18:28:47 +07:00
parent 3c2ce93724
commit c88a83f43e

View file

@ -266,8 +266,18 @@ export class DevelopmentOfficerHistoryController extends Controller {
.skip((page - 1) * pageSize)
.take(pageSize)
.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 });
}
/**