wangzhibo
4 天以前 c19f1f7e21c93d1f13b4f44a8a615f65af577559
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';
 
/**
 * 站点称重业务数据
 */
@Entity('t_operation_siteweight')
export class PushSiteweightEntity extends BaseEntity {
  @Index()
  @Column({ comment: '站点编号' })
  businessId: string;
 
  businessName: string;
 
  siteType:string;
 
  @Index()
  @Column({ comment: '归属单位' })
  departmentId: number;
 
  departmentName: string;
 
  @Column({ comment: '设备号' })
  deviceNo: string;
 
  @Index()
  @Column({ comment: '上传时间', type: 'datetime', nullable: true })
  uploadTime: Date;
 
  @Index()
  @Column({ comment: '垃圾类型' })
  garbageType: string;
 
  garbageName: string;
 
  @Column({
    comment: '垃圾重量',
    type: 'decimal',
    precision: 10,
    scale: 2,
    default: 0,
  })
  weight: number;
 
  @Column({ comment: '其他数据', type: 'text', nullable: true })
  extraData: string;
 
 @Column({ comment: '备注', nullable: true })
  remark: string;
}