package com.iformall.domain.po.invest;

import com.baomidou.mybatisplus.annotation.TableName;

import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.iformall.enums.EnumInvestType;
import com.iformall.enums.EnumTaskStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 招商任务
 *
 * @author
 * @email
 * @date 2019-09-24 14:48:11
 */
@Data
@TableName("invest_task")
@EqualsAndHashCode(callSuper = true)
public class InvestTaskEntity extends InvestBaseEntity {

	public static final String KEY_CONTRACTID = "contractId" ;

	/**
	 * 负责人
	 */
	@io.swagger.annotations.ApiModelProperty(value = "负责人", name = "owner")
	private String owner;
	/**
	 * 任务状态：-1-关闭;0-待分配;1-洽谈中;2-意向签约;3-已完成
	 */
	@io.swagger.annotations.ApiModelProperty(value = "任务状态：-1-关闭;0-待分配;1-洽谈中;2-意向签约;3-已完成", name = "status")
    private EnumTaskStatus status;
	/**
	 * 目标类型：0-商铺招租;1-其他
	 */
	@io.swagger.annotations.ApiModelProperty(value = "目标类型：0-商铺招租;1-其他", name = "targetType")
    private EnumInvestType targetType;
	/**
	 * 目标ID
	 */
	@io.swagger.annotations.ApiModelProperty(value = "目标ID", name = "targetId")
	private Long targetId;
	/**
	 * 任务设定条件
	 */
	@io.swagger.annotations.ApiModelProperty(value = "任务设定条件", name = "content",example = "{" +
			"\"business\": 1," +
			"\"contractId\":222222222222" +
			"}")
	private String content;

	@io.swagger.annotations.ApiModelProperty(value = "最晚出租时间", name = "lastTime", example = "2018-10-01",readOnly = true)
	private Date lastTime;

	/**
	 * 更新时间
	 */
	@io.swagger.annotations.ApiModelProperty(value = "更新时间", name = "updateDate", example = "2018-10-01 12:18:48",readOnly = true)
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	@Version
	private Date updateDate;

}
