jyy
2021-01-26 ab2879bbcb846256cc182198b9c04e50fbc276c1
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
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 vipId;
 
    @ApiModelProperty(value = "下单顾问ID")
    private Long createStaffId;
 
    @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 String shopName;
 
    @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 getVipId() {
        return vipId;
    }
 
    public void setVipId(Long vipId) {
        this.vipId = vipId;
    }
 
    public Long getCreateStaffId() {
        return createStaffId;
    }
 
    public void setCreateStaffId(Long createStaffId) {
        this.createStaffId = createStaffId;
    }
 
    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 String getShopName() {
        return shopName;
    }
 
    public void setShopName(String shopName) {
        this.shopName = shopName;
    }
 
    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;
            case "待确认" :
                this.status = "9";
                break;
            default:
                this.status = "0";
                break;
        }
    }
}