Helius
2021-03-12 62bf99d419e470f5556f21682d0d8ee8b9e20412
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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
package com.matrix.system.hive.statistics;
 
import com.matrix.core.anotations.Extend;
import com.matrix.core.tools.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * @author wzy
 * @date 2021-01-15
 **/
public class DailySaleVo {
 
    private String dataTime;
 
    private String shopName;
 
    private BigDecimal shouldPay;
 
    private BigDecimal totalPay;
 
    private BigDecimal cashPay;
 
    private BigDecimal cardPay;
 
    private BigDecimal arrearsPay;
 
    private BigDecimal refundCashPay;
 
    private BigDecimal refundCardPay;
 
    private BigDecimal productAchieve;
 
    private BigDecimal cardAchieve;
 
    private BigDecimal refund;
 
    private BigDecimal perCustomCnt;
 
    private BigDecimal customGoodsCnt;
 
    private BigDecimal perCustomPrice;
 
    private BigDecimal cost;
 
    private BigDecimal grossProfit;
 
    private BigDecimal grossProfitRate;
 
    private BigDecimal consumePay;
 
    private BigDecimal freeConsumePay;
 
    private BigDecimal peopleCnt;
 
    private BigDecimal projConsumeCnt;
 
    private BigDecimal timeLength;
 
    /**
     * 当天销售总数量
     */
    private Integer totalSaleCnt;
 
    /**
     * 家居产品成本
     */
    private BigDecimal goodsCost;
 
    /**
     * 除家具产品以外成本
     */
    private BigDecimal otherCost;
 
    private BigDecimal wechat;
 
    private BigDecimal alipay;
 
    private BigDecimal cash;
 
    private BigDecimal bankCard;
 
    private BigDecimal tuan;
 
    private BigDecimal cardBj;
 
    private BigDecimal cardFree;
 
    private BigDecimal arrears;
 
    @Extend
    @DateTimeFormat(pattern = DateUtil.DATE_FORMAT_DD)
 
    private Date beginTime;
 
    @Extend
    @DateTimeFormat(pattern = DateUtil.DATE_FORMAT_DD)
    private Date endTime;
 
    private Long shopId;
 
    public BigDecimal getShouldPay() {
        return shouldPay;
    }
 
    public void setShouldPay(BigDecimal shouldPay) {
        this.shouldPay = shouldPay;
    }
 
    public BigDecimal getWechat() {
        return wechat;
    }
 
    public void setWechat(BigDecimal wechat) {
        this.wechat = wechat;
    }
 
    public BigDecimal getAlipay() {
        return alipay;
    }
 
    public void setAlipay(BigDecimal alipay) {
        this.alipay = alipay;
    }
 
    public BigDecimal getCash() {
        return cash;
    }
 
    public void setCash(BigDecimal cash) {
        this.cash = cash;
    }
 
    public BigDecimal getBankCard() {
        return bankCard;
    }
 
    public void setBankCard(BigDecimal bankCard) {
        this.bankCard = bankCard;
    }
 
    public BigDecimal getTuan() {
        return tuan;
    }
 
    public void setTuan(BigDecimal tuan) {
        this.tuan = tuan;
    }
 
    public BigDecimal getCardBj() {
        return cardBj;
    }
 
    public void setCardBj(BigDecimal cardBj) {
        this.cardBj = cardBj;
    }
 
    public BigDecimal getCardFree() {
        return cardFree;
    }
 
    public void setCardFree(BigDecimal cardFree) {
        this.cardFree = cardFree;
    }
 
    public BigDecimal getArrears() {
        return arrears;
    }
 
    public void setArrears(BigDecimal arrears) {
        this.arrears = arrears;
    }
 
    public String getShopName() {
        return shopName;
    }
 
    public void setShopName(String shopName) {
        this.shopName = shopName;
    }
 
    public Date getBeginTime() {
        return beginTime;
    }
 
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }
 
    public Date getEndTime() {
        return endTime;
    }
 
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
 
    public Long getShopId() {
        return shopId;
    }
 
    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
 
    public Integer getTotalSaleCnt() {
        return totalSaleCnt;
    }
 
    public void setTotalSaleCnt(Integer totalSaleCnt) {
        this.totalSaleCnt = totalSaleCnt;
    }
 
    public BigDecimal getGoodsCost() {
        return goodsCost;
    }
 
    public void setGoodsCost(BigDecimal goodsCost) {
        this.goodsCost = goodsCost;
    }
 
    public BigDecimal getOtherCost() {
        return otherCost;
    }
 
    public void setOtherCost(BigDecimal otherCost) {
        this.otherCost = otherCost;
    }
 
    public String getDataTime() {
        return DateUtil.dateToString(DateUtil.stringToDate(dataTime, DateUtil.DATE_FORMAT_DD),DateUtil.DATE_FORMAT_DD);
    }
 
    public void setDataTime(String dataTime) {
        this.dataTime = dataTime;
    }
 
    public BigDecimal getTotalPay() {
        return totalPay;
    }
 
    public void setTotalPay(BigDecimal totalPay) {
        this.totalPay = totalPay;
    }
 
    public BigDecimal getCashPay() {
        return cashPay;
    }
 
    public void setCashPay(BigDecimal cashPay) {
        this.cashPay = cashPay;
    }
 
    public BigDecimal getCardPay() {
        return cardPay;
    }
 
    public void setCardPay(BigDecimal cardPay) {
        this.cardPay = cardPay;
    }
 
    public BigDecimal getArrearsPay() {
        return arrearsPay;
    }
 
    public void setArrearsPay(BigDecimal arrearsPay) {
        this.arrearsPay = arrearsPay;
    }
 
    public BigDecimal getFreeConsumePay() {
        return freeConsumePay;
    }
 
    public void setFreeConsumePay(BigDecimal freeConsumePay) {
        this.freeConsumePay = freeConsumePay;
    }
 
    public BigDecimal getConsumePay() {
        return consumePay;
    }
 
    public void setConsumePay(BigDecimal consumePay) {
        this.consumePay = consumePay;
    }
 
    public BigDecimal getRefundCashPay() {
        return refundCashPay;
    }
 
    public void setRefundCashPay(BigDecimal refundCashPay) {
        this.refundCashPay = refundCashPay;
    }
 
    public BigDecimal getRefundCardPay() {
        return refundCardPay;
    }
 
    public void setRefundCardPay(BigDecimal refundCardPay) {
        this.refundCardPay = refundCardPay;
    }
 
    public BigDecimal getProductAchieve() {
        return productAchieve;
    }
 
    public void setProductAchieve(BigDecimal productAchieve) {
        this.productAchieve = productAchieve;
    }
 
    public BigDecimal getCardAchieve() {
        return cardAchieve;
    }
 
    public void setCardAchieve(BigDecimal cardAchieve) {
        this.cardAchieve = cardAchieve;
    }
 
    public BigDecimal getRefund() {
        return refund;
    }
 
    public void setRefund(BigDecimal refund) {
        this.refund = refund;
    }
 
    public BigDecimal getPerCustomCnt() {
        return perCustomCnt;
    }
 
    public void setPerCustomCnt(BigDecimal perCustomCnt) {
        this.perCustomCnt = perCustomCnt;
    }
 
    public BigDecimal getCustomGoodsCnt() {
        if (BigDecimal.ZERO.compareTo(perCustomCnt) != 0) {
            return new BigDecimal(totalSaleCnt).divide(perCustomCnt, 2, BigDecimal.ROUND_DOWN);
        } else {
            return BigDecimal.ZERO;
        }
    }
 
    public void setCustomGoodsCnt(BigDecimal customGoodsCnt) {
        this.customGoodsCnt = customGoodsCnt;
    }
 
    public BigDecimal getPerCustomPrice() {
        if (perCustomCnt.compareTo(BigDecimal.ZERO) != 0) {
            return totalPay.divide(perCustomCnt, 2, BigDecimal.ROUND_DOWN);
        } else {
            return BigDecimal.ZERO;
        }
    }
 
    public void setPerCustomPrice(BigDecimal perCustomPrice) {
        this.perCustomPrice = perCustomPrice;
    }
 
    public BigDecimal getCost() {
        return goodsCost.add(otherCost);
    }
 
    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }
 
    public BigDecimal getGrossProfit() {
        return totalPay.subtract(getCost());
    }
 
    public void setGrossProfit(BigDecimal grossProfit) {
        this.grossProfit = grossProfit;
    }
 
    public BigDecimal getGrossProfitRate() {
        if (totalPay.compareTo(BigDecimal.ZERO) != 0) {
            return getGrossProfit().divide(totalPay, 2, BigDecimal.ROUND_DOWN);
        } else {
            return BigDecimal.ZERO;
        }
    }
 
    public void setGrossProfitRate(BigDecimal grossProfitRate) {
        this.grossProfitRate = grossProfitRate;
    }
 
    public BigDecimal getPeopleCnt() {
        return peopleCnt;
    }
 
    public void setPeopleCnt(BigDecimal peopleCnt) {
        this.peopleCnt = peopleCnt;
    }
 
    public BigDecimal getProjConsumeCnt() {
        return projConsumeCnt;
    }
 
    public void setProjConsumeCnt(BigDecimal projConsumeCnt) {
        this.projConsumeCnt = projConsumeCnt;
    }
 
    public BigDecimal getTimeLength() {
        return timeLength;
    }
 
    public void setTimeLength(BigDecimal timeLength) {
        this.timeLength = timeLength;
    }
}