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 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; } }