package com.kcim.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 收入归集设置
 * 
 * @author KCYG
 * @email KCYG@xinxicom
 * @date 2021-08-03 08:41:20
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("cost_income_group_set")
public class CostIncomeGroupSet implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 收入归集设置的Id
	 */
	@TableId
	private Long id;
	/**
	 * 开单科室状态 1收益中心 2成本中心
	 */
	private Integer openDepartmentStatus;
	/**
	 * 开单科室收益比例
	 */
	private Integer openDepartmentProportion;
	/**
	 * 执行科室状态 1收益中心 2成本中心
	 */
	private Integer startDepartmentStatus;
	/**
	 * 执行科室的收益比例
	 */
	private Integer startDepartmentProportion;
	/**
	 * 医院的Id
	 */
	private Long hospId;
	/**
	 * 责任中心的代码
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String responsibilityCodes;
	/**
	 * 排除的成本科目的Id ,拼接
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String accountCode;
	/**
	 * 创建时间13位时间戳
	 */
	private Long createTime;
	/**
	 * 删除时间，如果存在表示已删除13位时间戳
	 */
	@TableLogic(value = "0",delval = "UNIX_TIMESTAMP(NOW()) * 1000")
	private Long deleteTime;

}
