Sunshine
2024-11-04 919ed870ea1def0cfdd1dff23bec204975e7f34c
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
package com.nova.sankuai.domain.entity;
 
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang.StringUtils;
 
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
 
/**
 * @author weikangdi
 * @create 2022/4/29
 */
@ApiModel(value = "资方信息表")
@Data
public class CapitalInfo {
 
    //渠道配置-不指定
    public static final int CHANNEL_NONE = 0;
 
    //渠道配置-包含
    public static final int CHANNEL_INCLUDE = 1;
 
    //渠道配置-不包含
    public static final int CHANNEL_UNINCLUDE = 2;
 
    @ApiModelProperty(value = "资方信息Id")
    @TableId
    private Long id;
 
    @ApiModelProperty(value = "资方名称")
    private String name;
 
    @ApiModelProperty(value = "公司名称")
    private String company;
 
    @ApiModelProperty(value = "资方代码")
    private String code;
 
    @ApiModelProperty(value = "删除标志 0-未删除 1-已删除")
    @TableLogic
    private Integer deleteFlag;
 
    @ApiModelProperty(value = "是否启用 0-未启用 1-启用")
    private Integer enableFlag;
 
    @ApiModelProperty(value = "创建时间")
    private Date creationDate;
 
    @ApiModelProperty(value = "最后更新时间")
    private Date lastUpdatedDate;
 
    @ApiModelProperty(value = "资方图标路径")
    private String iconUrl;
 
    @ApiModelProperty(value = "是否显示在首页 0为否,1为是")
    private Integer isShowPage;
 
    @ApiModelProperty(value = "排序")
    private Integer seq;
 
    @ApiModelProperty(value = "0为线上贷款,1为银行直贷")
    private Integer fundType;
 
    /**
     * 枚举:CapitalAutoPushEnum
     */
    @ApiModelProperty(value = "自动推送 0为启用,1为不启用")
    private Integer autoPush;
 
    @ApiModelProperty(value = "资方类型 0普通,1为撞库联登 2为绿地半流程对接")
    private Integer type;
 
    @ApiModelProperty(value = "渠道方appId")
    private String appId;
 
    @ApiModelProperty(value = "首页显示类型 0为限时抢 1为精选 2为银行直贷")
    private String pageDisplayType;
 
    @ApiModelProperty(value = "城市筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String cityLimit;
 
    @ApiModelProperty(value = "年龄下限")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer ageLowerLimit;
 
    @ApiModelProperty(value = "年龄上限")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer ageUpperLimit;
 
    @ApiModelProperty(value = "婚姻状况筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String marriageLimit;
 
    @ApiModelProperty(value = "芝麻分筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer sesameLimit;
 
    @ApiModelProperty(value = "社保筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String socialSecurityLimit;
 
    @ApiModelProperty(value = "公积金筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String providentFundLimit;
 
    @ApiModelProperty(value = "房产信息筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String houseLimit;
 
    @ApiModelProperty(value = "车产信息筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String carLimit;
 
    @ApiModelProperty(value = "保单筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String policyLimit;
 
    @ApiModelProperty(value = "信用卡筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer creditCardLimit;
 
    @ApiModelProperty(value = "申请金额下限")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer amountLowerLimit;
 
    @ApiModelProperty(value = "申请金额上限")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer amountUpperLimit;
 
    @ApiModelProperty(value = "月收入筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer monthlyIncomeLimit;
 
    @ApiModelProperty(value = "学历筛选")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String educationLimit;
 
 
    @ApiModelProperty(value = "是否展示在后台")
    private Integer isShowBackStage;
 
    @ApiModelProperty(value = "联登模式开关 0为关 1为开")
    private Integer isCollion;
 
 
    @ApiModelProperty(value = "渠道配置 0-不指定 1-包含 2-不包含")
    private Integer channelConfig;
 
    @ApiModelProperty(value = "渠道配置Id列表")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String channelIds;
 
    @ApiModelProperty(value = "是否显示弹窗 0为否 1为是")
    private Integer isPopUp;
 
    @ApiModelProperty(value = "收入模式 0为资方模式 1为联登模式")
    private Integer feeMode;
 
    @ApiModelProperty(value = "是否必须OCR资料 0为否 1为是 应对ocr识别是否成功")
    private Integer isOcrRequired;
 
    @ApiModelProperty(value = "使用场景标识集合 参考枚举CapitalInfoUserSceneEnum")
    private String useSceneFlag;
 
    @ApiModelProperty(value = "审核开关  0为关  1为开")
    private Integer auditSwitch;
 
    /**
     * 于2022-10-24新增:是否一直显示
     */
    @ApiModelProperty(value = "是否一直显示")
    @TableField(updateStrategy = FieldStrategy.IGNORED)// 用来解决为空时不更新的问题
    private String alwayShow;
    /**
     * 枚举:CapitalCollionModeParamEnum
     */
    @ApiModelProperty(value = "联登模式弹窗开关 0 非半流程  1 半流程")
    private Integer collionMode;
    /**
     * 枚举:CapitalTopViewEnum
     */
    @ApiModelProperty(value = "是否顶部显示")
    private Integer isTopView;
 
    @ApiModelProperty(value = "安卓下载链接")
    private String androidLink;
 
    @ApiModelProperty(value = "IOS下载链接")
    private String iosLink;
 
    // ab新增于2024-10-16
    @ApiModelProperty(value = "H5匹配资金方 1开启 0关")
    private Integer h5Match;
 
    @ApiModelProperty(value = "外部流量开关,1开启,0关闭")
    private Integer externalSwitch;
 
    @ApiModelProperty(value = "自主获客开关,1开启,0关闭")
    private Integer acquisitionSwitch;
 
    public List<String> parseUseSceneFlagList() {
        List<String> list = new ArrayList<>();
        if (StringUtils.isNotEmpty(useSceneFlag)) {
            list = Arrays.asList(useSceneFlag.split(","));
        }
        return list;
    }
 
}