audit date is modified

This commit is contained in:
병준 박 2019-08-19 16:11:19 +09:00
parent 1824c56d2b
commit 0c686a458b
3 changed files with 13 additions and 13 deletions

View File

@ -114,26 +114,26 @@
</mat-cell>
</ng-container>
<!-- CreatedAt Column -->
<ng-container matColumnDef="createdAt">
<!-- createdDate Column -->
<ng-container matColumnDef="createdDate">
<mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm
>Created At</mat-header-cell
>Created Date</mat-header-cell
>
<mat-cell *matCellDef="let user" fxHide fxShow.gt-sm>
<p class="text-truncate">
{{ user.createdAt }}
{{ user.createdDate | date: 'yyyy.MM.dd, HH:mm:ss' }}
</p>
</mat-cell>
</ng-container>
<!-- UpdatedAt Column -->
<ng-container matColumnDef="updatedAt">
<!-- Last Modified Date Column -->
<ng-container matColumnDef="lastModifiedDate">
<mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm
>Updated At</mat-header-cell
>Last Modified Date</mat-header-cell
>
<mat-cell *matCellDef="let user" fxHide fxShow.gt-sm>
<p class="text-truncate">
{{ user.updatedAt }}
{{ user.lastModifiedDate | date: 'yyyy.MM.dd, HH:mm:ss' }}
</p>
</mat-cell>
</ng-container>

View File

@ -38,8 +38,8 @@ export class ListComponent implements OnInit, OnDestroy, AfterViewInit {
'email',
'block',
'sendEmail',
'createdAt',
'updatedAt'
'createdDate',
'lastModifiedDate'
];
@ViewChild(MatPaginator, { static: true })

View File

@ -1,9 +1,9 @@
export interface DateAudit {
createdAt: Date;
updatedAt: Date;
createdDate: Date;
lastModifiedDate: Date;
}
export interface UserDateAuditEntity extends DateAudit {
createdBy: number;
updatedBy: number;
lastModifiedBy: number;
}