package com.hwrj.cloud.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @className:
 * @description:
 * @author: lym
 * @date: 2020/9/7 14:59
 */
@Data
@ApiModel("生产地产物信息")
public class UmsMemberOriginProductParam {
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "生产地id (生产地信息表 ums_member_origin -> id)")
    @NotNull(message = "请选择生产地！")
    private Long fkOriginId;

    @ApiModelProperty(value = "产品名称")
    @NotEmpty(message = "产品名称不能为空！")
    private String productName;

    @ApiModelProperty(value = "产出物种植面积（亩）")
    @NotEmpty(message = "产出物种植面积不能为空！")
    private String plantArea;

    @ApiModelProperty(value = "产出物总产量（吨）")
    @NotEmpty(message = "产出物总产量不能为空！")
    private String outputNum;

    @ApiModelProperty(value = "产出物亩产值（万元）")
    @NotEmpty(message = "产出物亩产值不能为空！")
    private String outputValue;

    @ApiModelProperty(value = "状态 0:可用，1:禁用，2:删除")
    private Integer state;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private Integer createId;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "修改人id")
    private Integer updateId;

    @ApiModelProperty(value = "备注")
    private String remark;

    private Integer pageNum = 1;

    private Integer pageSize = 10;
}
