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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { StringLiteralType } from 'typescript';
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from "typeorm";
 
/**
 * 回收物品预约信息
 */
@Entity("t_recycle_appointment")
export class RecycleAppointmentEntity extends BaseEntity {
    @Index({ unique: true })
    @Column({ comment: "预约编号" })
    appointmentNo: string;
 
    @Index()
    @Column({ comment: '学校ID', nullable: true })   // 使用归属部门,这里建议选顶层学校
    departmentId: number;
 
    departmentName: string;
 
    @Index()
    @Column({ comment: "用户ID" })
    campusUserId: string;
 
    campusUserName: string;
 
    @Column({ comment: "联系人" })
    contactName: string;
 
    @Column({ comment: "联系电话" })
    contactPhone: string;
 
    @Column({ comment: "详细地址" })
    address: string;
 
 
    @Column({ comment: "经度", nullable: true })
    longitude: number;
 
 
    @Column({ comment: "纬度",nullable: true })
    latitude: number;
 
    @Column({ comment:"预约日期"})
    appointmentDate:string;
 
     @Column({comment:"预约时间段", default:"傍晚 18:00-20:00"})
    appointmentSlot:string;
 
 
    @Column({ comment:"预计重量",default: 0 })
    expectedWeight:number;
 
    @Column({ comment: "状态", dict: ['新增', '待审核', '待接单', '已确认', '已接单', '上门中', '已完成', '已取消', '未知'], default: '新增' })
    status: string;
    
    @Index()
    @Column({ comment: "分拣员ID", nullable: true, default: 0 })
    sorterId: string;
 
    sorterName: string;
 
    @Column({ comment:"回收订单ID", nullable:true})
    recycleOrderId:string;
 
 
}