wangrong
7 天以前 a9a1c709f56bb7c4361aa04b7cc647baaed74fcd
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
44
45
46
47
48
49
50
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 车辆GPS数据
 */
@Entity('t_operation_vehicle_gps')
export class PushVehicleGpsEntity extends BaseEntity {
  @Index()
  @Column({ comment: '设备序列号' })
  sn: string;
 
  @Column({ comment: '消息序列号' })
  msgSeq: string;
 
  @Index()
  @Column({ comment: '消息创建时间', nullable: true })
  createDate: Date;
 
  @Index()
  @Column({ comment: '车牌号', nullable: true })
  vehicleNo: string;
 
   @Index()
  @Column({ comment: '归属单位' })
  departmentId: number;
 
  departmentName: string;
 
  @Column({ comment: 'GPS定位时间', nullable: true })
  gpsTime: Date;
 
  @Column({ comment: '经度', type: 'decimal', precision: 10, scale: 6, nullable: true })
  longitude: number;
 
  @Column({ comment: '纬度', type: 'decimal', precision: 10, scale: 6, nullable: true })
  latitude: number;
 
  @Column({ comment: '速度', type: 'decimal', precision: 5, scale: 2, nullable: true })
  speed: number;
 
  @Column({ comment: '方向角', type: 'int', nullable: true })
  direction: number;
 
  @Column({ comment: '海拔高度', type: 'decimal', precision: 6, scale: 2, nullable: true })
  elevation: number;
 
  @Column({ comment: '定位精度' })
  status: string;
}