wangzhibo
2026-07-28 920cec41cedfde27f89d7c19b78e03147b926ab5
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_waste_sale')
export class OperationWastesaleEntity extends BaseEntity {
  @Index()
  @Column({ comment: '部门ID', type: 'bigint' })
  departmentId: number;
 
  departmentName: string;
 
  @Index()
  @Column({ comment: '收集点ID', nullable: true })
  siteId: string;
  
  siteName: string;
 
  @Index()
  @Column({ comment: '垃圾种类' })
  wasteCode: string;
 
  wasteName: string;
 
  @Column({ comment: '日期时间', type: 'datetime' })
  dateTime: Date;
 
  @Column({ comment: '重量', type: 'decimal', precision: 10, scale: 2 })
  weight: number;
 
  @Column({ comment: '单价', type: 'decimal', precision: 10, scale: 2 })
  unitPrice: number;
 
  @Column({ comment: '总价', type: 'decimal', precision: 12, scale: 2 })
  totalPrice: number;
 
  @Index()
  @Column({ comment: '经手人ID', type: 'bigint' })
  handlerId: number;
 
  handlerName: string;
 
  @Column({ comment: '收购方代码', length: 50 })
  buyerCode: string;
 
  buyerName: string;
 
}