no message
This commit is contained in:
parent
15c7401552
commit
3a0e295bba
3 changed files with 40 additions and 3 deletions
|
|
@ -52,7 +52,17 @@ export class ProfileDisciplineController extends Controller {
|
|||
public async getDiscipline(@Path() profileId: string) {
|
||||
const lists = await this.disciplineRepository.find({
|
||||
where: { profileId: profileId },
|
||||
select: ["id", "date", "level", "detail", "unStigma", "refCommandNo", "refCommandDate"],
|
||||
select: [
|
||||
"id",
|
||||
"date",
|
||||
"level",
|
||||
"detail",
|
||||
"unStigma",
|
||||
"refCommandNo",
|
||||
"refCommandDate",
|
||||
"lastUpdateFullName",
|
||||
"lastUpdatedAt",
|
||||
],
|
||||
});
|
||||
return new HttpSuccess(lists);
|
||||
}
|
||||
|
|
@ -85,7 +95,17 @@ export class ProfileDisciplineController extends Controller {
|
|||
public async disciplineHistory(@Path() disciplineId: string) {
|
||||
const record = await this.disciplineHistoryRepository.find({
|
||||
where: { profileDisciplineId: disciplineId },
|
||||
select: ["id", "date", "level", "detail", "unStigma", "refCommandNo", "refCommandDate"],
|
||||
select: [
|
||||
"id",
|
||||
"date",
|
||||
"level",
|
||||
"detail",
|
||||
"unStigma",
|
||||
"refCommandNo",
|
||||
"refCommandDate",
|
||||
"lastUpdateFullName",
|
||||
"lastUpdatedAt",
|
||||
],
|
||||
order: { createdAt: "DESC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue