package com.yh.saas.plugin.news.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.winsea.svc.base.base.entity.CommonVessel;
import com.winsea.svc.base.base.view.DeptInfoView;
import com.yh.saas.plugin.news.entity.CircularManagementInfo;
import com.yh.saas.common.support.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 通知通函返回VO
 * </p>
 *
 * @author wxg
 * @since 2019-10-15
 */
@Data
public class CircularManagementInfoVo extends BaseModel<CircularManagementInfo> {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键id", name = "id")
	private String id;

	@ApiModelProperty(value = "公司ID", name = "compId")
	private String compId;

	@ApiModelProperty(value = "适用部门id", name = "deptId")
	private String deptId;

	@ApiModelProperty(value = "适用部门名称", name = "deptName")
	private String deptName;

	@ApiModelProperty(value = "通函类别ID", name = "typeId")
	private String typeId;

	@ApiModelProperty(value = "通函类别名称", name = "circularTypeName")
	private String circularTypeName;

	@ApiModelProperty(value = "通函编码", name = "circularCode")
	private String circularCode;

	@ApiModelProperty(value = "发布日期", name = "dateOfIssue")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date dateOfIssue;

	@ApiModelProperty(value = "主题", name = "theme")
	private String theme;

	@ApiModelProperty(value = "状态ID", name = "statusId")
	private String statusId;

	@ApiModelProperty(value = "状态", name = "status")
	private String status;

	@ApiModelProperty(value = "状态英文", name = "statusEn")
	private String statusEn;

	@ApiModelProperty(value = "是否学习反馈", name = "learnFeedback")
	private Boolean learnFeedback;

	@ApiModelProperty(value = "有效期", name = "validityPeriod")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date validityPeriod;

	@ApiModelProperty(value = "是否永久有效", name = "usefulLife")
	private Boolean usefulLife;

	@ApiModelProperty(value = "通函通知", name = "attachmentPath")
	private String attachmentPath;
	
	@ApiModelProperty(value = "附件数量", name = "attachmentNum")
	private String attachmentNum;

	@ApiModelProperty(value = "附件", name = "appendixPath")
	private String appendixPath;

	@ApiModelProperty(value = "发送人", name = "sender")
	private String sender;

	/**
	 * 备注
	 */
	private String remarks;

	private List<CommonVessel> receiveVessel;

	private List<DeptInfoView> receiveDept;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
