Helius
2020-12-27 c0691d2302bbaed2a47b2b703b83ed5bc204e397
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
package com.matrix.system.app.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.matrix.core.tools.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
import java.util.Date;
import java.util.List;
 
/**
 * @author wzy
 * @date 2020-12-24
 **/
@ApiModel(value = "ServiceOrderListVo", description = "服务单列表返回参数类")
public class ServiceOrderListVo {
 
    @ApiModelProperty(value = "服务单Id")
    private Long id;
 
    @ApiModelProperty(value = "下单顾问ID")
    private Long staffId;
 
    @ApiModelProperty(value = "服务单编号")
    private String serviceNo;
 
    @JsonFormat(pattern = DateUtil.DATE_FORMAT_MM, timezone = "GMT+8")
    @ApiModelProperty(value = "预约时间")
    private Date time;
 
    @ApiModelProperty(value = "会员名称")
    private String vipName;
 
    @ApiModelProperty(value = "服务时长")
    private Integer timeLength;
 
    @ApiModelProperty(value = "床位")
    private String bed;
 
    @ApiModelProperty(value = "状态 1-待预约 2-待派单 3-待配料 4-待服务 5-服务中 6-服务完成 7-服务单结束")
    private String status;
 
    @ApiModelProperty(value = "服务项目信息")
    private List<ServiceOrderListProjVo> projs;
 
    public Long getStaffId() {
        return staffId;
    }
 
    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }
 
    public List<ServiceOrderListProjVo> getProjs() {
        return projs;
    }
 
    public void setProjs(List<ServiceOrderListProjVo> projs) {
        this.projs = projs;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getServiceNo() {
        return serviceNo;
    }
 
    public void setServiceNo(String serviceNo) {
        this.serviceNo = serviceNo;
    }
 
    public Date getTime() {
        return time;
    }
 
    public void setTime(Date time) {
        this.time = time;
    }
 
    public String getVipName() {
        return vipName;
    }
 
    public void setVipName(String vipName) {
        this.vipName = vipName;
    }
 
    public Integer getTimeLength() {
        return timeLength;
    }
 
    public void setTimeLength(Integer timeLength) {
        this.timeLength = timeLength;
    }
 
    public String getBed() {
        return bed;
    }
 
    public void setBed(String bed) {
        this.bed = bed;
    }
 
    public String getStatus() {
        return status;
    }
 
    public void setStatus(String status) {
        switch (status) {
            case "待预约" :
                this.status = "1";
                break;
            case "预约成功待处理" :
                this.status = "2";
                break;
            case "需配料" :
                this.status = "3";
                break;
            case "配料完成" :
                this.status = "4";
                break;
            case "服务中" :
                this.status = "5";
                break;
            case "服务完成" :
                this.status = "6";
                break;
            case "服务单结束" :
                this.status = "7";
                break;
            case "预约取消" :
                this.status = "8";
                break;
            default:
                this.status = "0";
                break;
        }
    }
}