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
42
43
44
45
46
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 站点信息
 */
@Entity('t_basicdata_site')
export class BasicdataSiteEntity extends BaseEntity {
  @Index()
  @Column({ comment: '编码' })
  businessId: string;
  
  @Column({ comment: '名称' })
  businessName: string;
 
  @Index()
  @Column({ comment: '归属单位' })
  departmentId: number;
 
   // 部门名称
  departmentName: string;
 
  @Column({ comment: '站点类型', dict: 'sitetype', default: "收集点" })
  siteType: string;
 
  @Column({ comment: '地址' })
  address: string;
 
  @Column({ comment: '负责人' })
  leader: string;
 
  @Column({ comment: '经度', type: 'decimal', precision: 10, scale: 6 })
  longitude: number;
 
  @Column({ comment: '纬度', type: 'decimal', precision: 10, scale: 6 })
  latitude: number;
 
  @Column({ comment: '照片', nullable: true })
  photo: string;
 
  @Column({ comment: '是否启用', dict: ['禁用', '启用'], default: 1 })
  status: number;
 
  @Column({ comment: '备注', nullable: true })
  remark: string;
}