wangzhibo
7 天以前 665ba0f9ae078c2859209451a163d10515171d11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 分拣员健康告警信息
 */
@Entity('t_push_sorter_alarm')
export class PushSorterAlarmEntity extends BaseEntity {
    @Index()
    @Column({ comment: '身份证号', length: 18 })
    idCard: string;
 
    @Column({ comment: '所属单位' })
    departmentId: number;
 
    departmentName: string;
 
    @Index()
    @Column({ comment: '数据时间' })
    uploadTime: Date;
 
 
    @Column({ comment: '报警类型' })
    alarmType: string;
 
    @Column({ comment: '报警内容', type: 'text', nullable: true })
    content: string;
 
    @Column({ comment: '报警级别', dict: ['一般', '中等', '严重'], default: '一般' })
    alarmLevel: string;
 
    @Column({ comment: '处理状态', dict: ['未处理', '已处理'], default: 0 })
    status: number;
 
 
    @Column({ comment: '处理人ID', nullable: true })
    handleUser: number;
 
    @Column({ comment: '处理时间', nullable: true })
    handleTime: Date;
 
 
}