xiaoyong931011
2022-05-06 1cac5ccf16e3ecf3551704abbc072b61e0349c52
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
package com.matrix.system.padApi.dto;
 
import com.matrix.core.tools.DateUtil;
import com.matrix.system.app.dto.BasePageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.util.Date;
 
@ApiModel(value = "PadOrderListDto", description = "订单列表接收参数类")
public class PadOrderListDto extends BasePageDto {
 
    @ApiModelProperty(value = "订单状态 0-全部 1-待付款 2-已付款 3-欠款 4-已取消 全部默认传空字符串", example = "1")
    private Integer orderStatus;
 
    @ApiModelProperty(hidden = true)
    private String status;
 
    @ApiModelProperty(value = "查询字段")
    private String queryKey;
 
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
//    private Date orderTime;
 
    public Date getBeginTimeVo() {
        return beginTimeVo;
    }
 
    public void setBeginTimeVo(Date beginTimeVo) {
        this.beginTimeVo = beginTimeVo;
    }
 
    @DateTimeFormat(pattern = DateUtil.DATE_FORMAT_MM)
    private Date beginTimeVo;
 
    public Date getEndTimeVo() {
        return endTimeVo;
    }
 
    public void setEndTimeVo(Date endTimeVo) {
        this.endTimeVo = endTimeVo;
    }
 
    @DateTimeFormat(pattern = DateUtil.DATE_FORMAT_MM)
    private Date endTimeVo;
 
    @ApiModelProperty(hidden = true)
    private Long shopId;
 
    @ApiModelProperty(hidden = true)
    private Long companyId;
 
//    public Date getOrderTime() {
//        return orderTime;
//    }
//
//    public void setOrderTime(Date orderTime) {
//        this.orderTime = orderTime;
//    }
 
    public Long getCompanyId() {
        return companyId;
    }
 
    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }
 
    public Long getShopId() {
        return shopId;
    }
 
    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
 
    public String getStatus() {
        return status;
    }
 
    public void setStatus(String status) {
        this.status = status;
    }
 
    public String getQueryKey() {
        return queryKey;
    }
 
    public void setQueryKey(String queryKey) {
        this.queryKey = queryKey;
    }
 
    public Integer getOrderStatus() {
        return orderStatus;
    }
 
    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
        switch (orderStatus) {
            case 0 :
                this.status = "";
                break;
            case 1:
                this.status = "待付款";
                break;
            case 2:
                this.status = "已付款";
                break;
            case 3:
                this.status = "欠款";
                break;
            case 4:
                this.status = "已取消";
                break;
            default:
                this.status = "";
                break;
        }
    }
}