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', length: 64 })
|
handlerId: string;
|
|
handlerName: string;
|
|
@Column({ comment: '收购方代码', length: 50 })
|
buyerCode: string;
|
|
buyerName: string;
|
|
}
|