wzy
2021-01-14 eab8cea0dbf3104da6cbb117a604853e5d9f14a0
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
package com.matrix.system.app.vo;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
import java.math.BigDecimal;
 
/**
 * @author wzy
 * @date 2020-12-29
 **/
@ApiModel(value = "BusinessDataShowVo", description = "经营报表返回参数类")
public class BusinessesDataShowVo {
 
    @ApiModelProperty(value = "时间")
    private String dataTime;
 
    @ApiModelProperty(value = "营业收入")
    private String totalPay;
 
    @ApiModelProperty(value = "现金收款")
    private String cashPay;
 
    @ApiModelProperty(value = "储值卡收款")
    private String cardPay;
 
    @ApiModelProperty(value = "欠款")
    private String arrearsPay;
 
    @ApiModelProperty(value = "现金退款")
    private String refundCashPay;
 
    @ApiModelProperty(value = "卡项退款")
    private String refundCardPay;
 
    @ApiModelProperty(value = "产品业绩")
    private String productAchieve;
 
    @ApiModelProperty(value = "卡项业绩")
    private String cardAchieve;
 
    @ApiModelProperty(value = "退款")
    private String refund;
 
    @ApiModelProperty(value = "客单数")
    private String perCustomCnt;
 
    @ApiModelProperty(value = "客品数")
    private String customGoodsCnt;
 
    @ApiModelProperty(value = "客单价")
    private String perCustomPrice;
 
    @ApiModelProperty(value = "成本")
    private String cost;
 
    @ApiModelProperty(value = "毛利")
    private String grossProfit;
 
    @ApiModelProperty(value = "毛利率")
    private String grossProfitRate;
 
    @ApiModelProperty(value = "本金消耗")
    private String consumePay;
 
    @ApiModelProperty(value = "赠送消耗")
    private String freeConsumePay;
 
    @ApiModelProperty(value = "人头数")
    private String peopleCnt;
 
    @ApiModelProperty(value = "项目消耗数")
    private String projConsumeCnt;
 
    @ApiModelProperty(value = "服务时长")
    private String timeLength;
 
    /**
     * 当天销售总数量
     */
    @ApiModelProperty(hidden = true)
    private Integer totalSaleCnt;
 
    /**
     * 家居产品成本
     */
    @ApiModelProperty(hidden = true)
    private String goodsCost;
 
    /**
     * 除家具产品以外成本
     */
    @ApiModelProperty(hidden = true)
    private String otherCost;
 
    public Integer getTotalSaleCnt() {
        return totalSaleCnt;
    }
 
    public void setTotalSaleCnt(Integer totalSaleCnt) {
        this.totalSaleCnt = totalSaleCnt;
    }
 
    public String getGoodsCost() {
        return goodsCost;
    }
 
    public void setGoodsCost(String goodsCost) {
        this.goodsCost = goodsCost;
    }
 
    public String getOtherCost() {
        return otherCost;
    }
 
    public void setOtherCost(String otherCost) {
        this.otherCost = otherCost;
    }
 
    public String getDataTime() {
        return dataTime;
    }
 
    public void setDataTime(String dataTime) {
        this.dataTime = dataTime;
    }
 
    public String getTotalPay() {
        return totalPay;
    }
 
    public void setTotalPay(String totalPay) {
        this.totalPay = totalPay;
    }
 
    public String getCashPay() {
        return cashPay;
    }
 
    public void setCashPay(String cashPay) {
        this.cashPay = cashPay;
    }
 
    public String getCardPay() {
        return cardPay;
    }
 
    public void setCardPay(String cardPay) {
        this.cardPay = cardPay;
    }
 
    public String getArrearsPay() {
        return arrearsPay;
    }
 
    public void setArrearsPay(String arrearsPay) {
        this.arrearsPay = arrearsPay;
    }
 
    public String getFreeConsumePay() {
        return freeConsumePay;
    }
 
    public void setFreeConsumePay(String freeConsumePay) {
        this.freeConsumePay = freeConsumePay;
    }
 
    public String getConsumePay() {
        return consumePay;
    }
 
    public void setConsumePay(String consumePay) {
        this.consumePay = consumePay;
    }
 
    public String getRefundCashPay() {
        return refundCashPay;
    }
 
    public void setRefundCashPay(String refundCashPay) {
        this.refundCashPay = refundCashPay;
    }
 
    public String getRefundCardPay() {
        return refundCardPay;
    }
 
    public void setRefundCardPay(String refundCardPay) {
        this.refundCardPay = refundCardPay;
    }
 
    public String getProductAchieve() {
        return productAchieve;
    }
 
    public void setProductAchieve(String productAchieve) {
        this.productAchieve = productAchieve;
    }
 
    public String getCardAchieve() {
        return cardAchieve;
    }
 
    public void setCardAchieve(String cardAchieve) {
        this.cardAchieve = cardAchieve;
    }
 
    public String getRefund() {
        return refund;
    }
 
    public void setRefund(String refund) {
        this.refund = refund;
    }
 
    public String getPerCustomCnt() {
        return perCustomCnt;
    }
 
    public void setPerCustomCnt(String perCustomCnt) {
        this.perCustomCnt = perCustomCnt;
    }
 
    public String getCustomGoodsCnt() {
        return new BigDecimal(totalSaleCnt).divide(new BigDecimal(perCustomCnt), 2, BigDecimal.ROUND_DOWN).toPlainString();
    }
 
    public void setCustomGoodsCnt(String customGoodsCnt) {
        this.customGoodsCnt = customGoodsCnt;
    }
 
    public String getPerCustomPrice() {
        return new BigDecimal(totalPay).divide(new BigDecimal(perCustomCnt), 2, BigDecimal.ROUND_DOWN).toPlainString();
    }
 
    public void setPerCustomPrice(String perCustomPrice) {
        this.perCustomPrice = perCustomPrice;
    }
 
    public String getCost() {
        return new BigDecimal(goodsCost).add(new BigDecimal(otherCost)).toPlainString();
    }
 
    public void setCost(String cost) {
        this.cost = cost;
    }
 
    public String getGrossProfit() {
        return new BigDecimal(totalPay).subtract(new BigDecimal(getCost())).toPlainString();
    }
 
    public void setGrossProfit(String grossProfit) {
        this.grossProfit = grossProfit;
    }
 
    public String getGrossProfitRate() {
        return new BigDecimal(getGrossProfit()).divide(new BigDecimal(totalPay), 2, BigDecimal.ROUND_DOWN).toPlainString();
    }
 
    public void setGrossProfitRate(String grossProfitRate) {
        this.grossProfitRate = grossProfitRate;
    }
 
    public String getPeopleCnt() {
        return peopleCnt;
    }
 
    public void setPeopleCnt(String peopleCnt) {
        this.peopleCnt = peopleCnt;
    }
 
    public String getProjConsumeCnt() {
        return projConsumeCnt;
    }
 
    public void setProjConsumeCnt(String projConsumeCnt) {
        this.projConsumeCnt = projConsumeCnt;
    }
 
    public String getTimeLength() {
        return timeLength;
    }
 
    public void setTimeLength(String timeLength) {
        this.timeLength = timeLength;
    }
}