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
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 回收物品信息
 */
@Entity('t_recycle_item')
export class RecycleItemEntity extends BaseEntity {
 
  @Index()
  @Column({ comment: '所属单位' })
  departmentId: string;
 
  departmentName: string;
 
  @Column({ comment: '分类ID' })
  itemId: string;
 
  @Index()
  @Column({ comment: '名称' })
  itemName: string;
 
  @Index()
  @Column({ comment: '包含品类' })
  including: string;
 
  @Column({ comment: '单位' })
  unit: string;
 
  @Column({
    comment: '价格',
    type: 'decimal',
    precision: 10,
    scale: 2,
  })
  price: number;
 
  @Column({ comment: '碳积分' })
  carbonPoint: number;
 
  @Index()
  @Column({ comment: '废品类别编码' })
  category: string;
 
  @Column({ comment: '状态', dict: ['启用', '禁用'], default: 0 })
  status: number;
  
}