Sunshine
2024-11-05 8f7985d7764a0aad24bd593ac5ea47b7fc290961
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
package com.nova.sankuai.domain.vo.sysuser;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nova.sankuai.domain.entity.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.util.Date;
import java.util.List;
 
/**
 * @author weikangdi
 */
@Data
@ApiModel(value = "机构对象Vo")
public class MechanismVo {
 
    @ApiModelProperty(value = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
 
    @ApiModelProperty(value = "用户名")
    private String userName;
 
    @ApiModelProperty(value = "手机号")
    private String userPhone;
 
    @ApiModelProperty(value = "分配状态")
    private Integer status;
 
    @ApiModelProperty(value = "最后登录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;
 
    @ApiModelProperty(value = "投放城市")
    private String deliveryCity;
 
    @ApiModelProperty(value = "投放城市名称")
    private String deliveryCityName;
 
    @ApiModelProperty(value = "所属公司名称")
    private String companyName;
 
    @ApiModelProperty(value = "金融产品名称")
    private String productName;
 
    @ApiModelProperty(value = "产品类型")
    private String productType;
 
    @ApiModelProperty(value = "产品属性")
    private String productAttributes;
 
    @ApiModelProperty(value = "职业信息")
    private String professionInfo;
 
    @ApiModelProperty(value = "单客户价格")
    private Double singleCustomerPrice;
 
    @ApiModelProperty(value = "是否为默认机构")
    private Integer defaultFlag;
 
    @ApiModelProperty(value = "创建时间")
    private Date creationDate;
 
    @ApiModelProperty(value = "当日获客占比")
    private Integer percentageOfCustomers;
 
    @ApiModelProperty(value = "是否启用充值功能 0-不启用 1-启用")
    private Integer rechargeFlag;
 
    @ApiModelProperty(value = "每日上限(条数)")
    private Integer dailyUpperLimit;
 
    @ApiModelProperty(value = "每日下限(条数)")
    private Integer dailyLowerLimit;
 
    @ApiModelProperty(value = "充值金额")
    private Double rechargeAmount;
 
    @ApiModelProperty(value = "消耗金额")
    private Double useAmount;
 
    @ApiModelProperty(value = "最低贷款额度")
    private Integer minLoanAmount;
 
    @ApiModelProperty(value = "机构渠道配置Id列表")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private List<Long> channelIds;
 
    @ApiModelProperty(value = "年龄下限")
    private Integer ageLowerLimit;
 
    @ApiModelProperty(value = "年龄上限")
    private Integer ageUpperLimit;
 
    public static MechanismVo parse(SysUser sysUser) {
        MechanismVo mechanismVo = new MechanismVo();
        BeanUtils.copyProperties(sysUser, mechanismVo);
        return mechanismVo;
    }
}