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 huangrui
 * @email 
 * @date 2021-07-27 14:53:53
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("cost_responsibility_department")
public class ResponsibilityDepartment implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 责任中心Id
	 */
	private Long responsibilityId;
	/**
	 * 科室名称Id
	 */
	private Long departmentId;
	/**
	 * 医院Id
	 */
	private Long hospId;
	/**
	 * 创建时间13位时间戳
	 */
	private Long createTime;
	/**
	 * 删除时间，如果存在表示已删除13位时间戳
	 */
	@TableLogic(value = "0",delval = "UNIX_TIMESTAMP(NOW()) * 1000")
	private Long deleteTime;

	private String responsibilityCode;

	private String departmentCode;

}
