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
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 垃圾回收订单详情信息
 */
@Entity('t_recycle_order_item')
export class RecycleOrderItemEntity extends BaseEntity {
    @Index()
    @Column({ comment: '订单NO' })
    orderNo: string;
 
    @Index()
    @Column({ comment: '垃圾分类ID' })
    itemId: string;
 
    @Column({ comment: '垃圾分类名称' })
    itemName: string;
 
    @Column({ comment: '固废国标分类' })
    category: string;
 
    @Column({ comment: '重量', type: 'decimal', precision: 10, scale: 2, default: 0, })
    weight: number;
 
    @Column({ comment: '单价', type: 'decimal', precision: 10, scale: 2, default: 0, })
    unitPrice: number;
 
    @Column({ comment: '金额', type: 'decimal', precision: 10, scale: 2, default: 0, })
    amount: number;
 
    @Column({ comment: '碳积分', type: 'decimal', precision: 10, scale: 2, default: 0, })
    carbonPoint: number;
}