package com.yuanchu.mom.pojo; import com.baomidou.mybatisplus.annotation.*; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import com.yuanchu.mom.annotation.ValueTableShow; import com.yuanchu.mom.common.OrderBy; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; /** * 进粉上报 * @TableName fans_submit */ @TableName(value ="fans_submit") @Data @AllArgsConstructor @NoArgsConstructor public class FansSubmit extends OrderBy implements Serializable { /** * 主键 */ @NotNull(message="[主键]不能为空") @ApiModelProperty("主键") @TableId(type = IdType.AUTO) private Integer id; /** * 客户 */ @ValueTableShow(1) @Size(max= 255,message="编码长度不能超过255") @ApiModelProperty("客户") @Length(max= 255,message="编码长度不能超过255") private String custom; /** * 项目 */ @ValueTableShow(2) @Size(max= 255,message="编码长度不能超过255") @ApiModelProperty("项目") @Length(max= 255,message="编码长度不能超过255") private String product; /** * 微信号 */ @ValueTableShow(3) @Size(max= 255,message="编码长度不能超过255") @ApiModelProperty("微信号") @Length(max= 255,message="编码长度不能超过255") private String vx; /** * 进粉 */ @ValueTableShow(4) @ApiModelProperty("进粉") private Integer fansAdd; /** * 创建时间 */ @ApiModelProperty("登记时间") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; /** * */ @ApiModelProperty("更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; /** * */ @ApiModelProperty("登记人id") @TableField(fill = FieldFill.INSERT) private Integer createUser; @ValueTableShow(5) @ApiModelProperty("登记人") private String createUserName; /** * */ @ApiModelProperty("更新用户") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; }