package com.softwarebr.nunu.entity.go;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * @date 2020-02-21 10:49:24
 * @author lilin
 */

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="go_policy_apply")
@Builder
public class PolicyApply {

	/**
	 * 1待受理
	 */
	public final static Integer STATUS_WAIT_ACCEPTANCE = 1;

	/**
	 * 2受理中
	 */
	public final static Integer STATUS_IN_ACCEPTANCE = 2;

	/**
	 * 3服务完成
	 */
	public final static Integer STATUS_SERVICE_SUCCESS = 3;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", required = true, example = "1")
	private Long id;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

	@ApiModelProperty(value = "政策id", required = true, example = "")
	private Long policyId;

	@ApiModelProperty(value = "申报人", required = true, example = "")
	private Long memberId;

	@ApiModelProperty(value = "政策需求详情(text) ", required = true, example = "")
	@Column(length = Integer.MAX_VALUE)
	private String content;

	@ApiModelProperty(value = "联系人", required = true, example = "")
	private String contact;

	@ApiModelProperty(value = "手机号码", required = true, example = "")
	private String contactPhone;

	@ApiModelProperty(value = "电子邮箱", required = true, example = "")
	private String email;

	@ApiModelProperty(value = "服务状态(1待受理 2受理中 3服务完成)", required = true, example = "")
	private Integer status;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审核时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime verifyDate;

	@ApiModelProperty(value = "审核备注", required = true, example = "")
	private String remark;

}