myjf007
2024-11-04 627b61d17da1dbf02c0363c659b728627dd42890
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
package com.nova.sankuai.domain.dto;
 
import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.util.Date;
 
/**
 * @author weikangdi
 * @create 2022/2/8
 */
@Data
@ApiModel(value = "会员转化率明细查询Dto")
public class VipStatisticsDetailDto {
 
    @ApiModelProperty(value = "渠道Id")
    private Long channelId;
 
    @ApiModelProperty(value = "状态 0-点击未下单 1-点击已下单 2-点击已购买")
    private Integer status;
 
    @ApiModelProperty(value = "开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
 
    @ApiModelProperty(value = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
 
    @ApiModelProperty(value = "客户姓名")
    private String customerName;
 
    @ApiModelProperty(value = "客户手机号")
    private String phone;
 
    @ApiModelProperty(value = "会员服务类型 参考枚举VipCardTypeEnum")
    private Integer vipType;
 
    public VipStatisticsDetailDto initDate() {
        if (this.getStartDate() == null) {
            this.setStartDate(DateUtil.beginOfDay(new Date()));
        }
        if (this.getEndDate() == null) {
            this.setEndDate(DateUtil.endOfDay(new Date()));
        }
        return this;
    }
}