package com.kcim.dao.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 分摊层级对照表
 * 
 * @author KCYG
 * @email KCYG@xinxicom
 * @date 2021-07-27 14:19:09
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("cost_share_level")
public class   CostShareLevel implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 分摊层级数名称
	 */
	private String shareName;
	/**
	 * 分摊层级序号
	 */
	private Integer leverSort;
	/**
	 * 医院Id
	 */
	private Long hospId;
	/**
	 * 目标层级
	 */
	private String targetLevel;
	/**
	 * 计算方式
	 */
	private Integer calcType;
	/**
	 * 创建时间13位时间戳
	 */
	private Long createTime;
	/**
	 * 删除时间，如果存在表示已删除13位时间戳
	 */
	@TableLogic(value = "0",delval = "UNIX_TIMESTAMP(NOW()) * 1000")
	private Long deleteTime;

}
