package cn.superdesk.uniorder.openapi.api._thirdpart.qchjc._dto.organisation;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2022/3/4 下午4:06
 * @UpdateUser: linjinyu
 * @UpdateDate: 2022/3/4 下午4:06
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class QchjcEnterpriseDto implements Serializable {

    @ApiModelProperty(value = "第三方企业(采购方)ID")
    @NotBlank(message = "不能为空")
    private String virtId;
    //	@ApiModelProperty(value = "第三方企业(采购方)编码")
//	@NotBlank(message = "不能为空")
//	private String virtNo;
    @ApiModelProperty(value = "第三方企业(采购方)名称")
    @NotBlank(message = "不能为空")
    private String virtName;

    @ApiModelProperty(value = "第三方企业(采购方)联系人")
    private String contactsName;
    @ApiModelProperty(value = "第三方企业(采购方)联系电话")
    private String contactsPhone;
    @ApiModelProperty(value = "第三方企业(采购方)联系地址")
    private String contactsAddress;

    @ApiModelProperty(value = "创建人姓名")
    @NotBlank(message = "不能为空")
    private String createUserName;
    @ApiModelProperty(value = "创建人id")
    @NotBlank(message = "不能为空")
    private String createUserId;
    @ApiModelProperty(value = "创建时间")
    @NotNull(message = "不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date   createTime;

    @ApiModelProperty(value = "更新人姓名")
    @NotBlank(message = "不能为空")
    private String updateUserName;
    @ApiModelProperty(value = "更新人id")
    @NotBlank(message = "不能为空")
    private String updateUserId;
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "不能为空")
    private Date   updateTime;

    @ApiModelProperty("是否启用:1-启用;0-禁用;")
    @NotNull(message = "不能为空")
    private Integer enabled;
    @ApiModelProperty("软删除:0-未删除;1-已删除")
    @NotNull(message = "不能为空")
    private Integer deleted;
}
