wangzhibo
2026-07-16 bac4362a0b7726d38a23d38f0d7913f2c2bab262
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
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 转运车辆信息
 */
@Entity('t_basicdata_vehicle')
export class BasicdataVehicleEntity extends BaseEntity {
  @Index({ unique: true })
  @Column({ comment: '车牌号', length: 32 })
  businessId: string;
 
  @Column({ comment: '车型', dict: 'vehicletype', default: "厢式货车" })
  vehicleType: String;
 
  @Column({
    comment: '载重吨数',
    type: 'decimal',
    precision: 10,
    scale: 3,
    nullable: true,
  })
  capacityTon: number;
 
  @Column({ comment: '默认司机', type: 'bigint', nullable: true })
  defaultDriver: String;
 
  @Index()
  @Column({ comment: '所属单位', type: 'bigint', nullable: true })
  departmentId: number;
 
  // 部门名称
  departmentName: string;
 
  @Column({ comment: '状态', dict: ['启用', '禁用'], default: 0 })
  status: number;
 
 
  @Column({ comment: '备注', nullable: true })
  remark: string;
}