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 parseUseSceneFlagList() { List list = new ArrayList<>(); if (StringUtils.isNotEmpty(useSceneFlag)) { list = Arrays.asList(useSceneFlag.split(",")); } return list; } }