package com.kcim.dao.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

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

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 报表对应项目设置关系
 * 
 * @author huangrui
 * @email 
 * @date 2021-08-03 13:53:52
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("cost_report_relation")
public class ReportRelation implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 报表项目id
	 */
	private Long reportId;
	/**
	 * 对应关系的唯一code码
	 */
	private String relationCode;
	/**
	 * 医院id
	 */
	private Long hospId;
	/**
	 * 1.会计科目，2.成本分摊参数
	 */
	private Integer relation;
	/**
	 * 创建时间
	 */
	private Long createTime;
	/**
	 * 删除时间
	 */
	@TableLogic(value = "0",delval = "UNIX_TIMESTAMP(NOW()) * 1000")
	private Long deleteTime;

}
