/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the yifu4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.yifu.cloud.plus.v1.yifu.salary.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 原表表头与配置关联表
 *
 * @author hgw
 * @date 2022-08-05 11:40:14
 */
@Data
@TableName("m_title_config")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "原表表头与配置关联表")
public class MTitleConfig extends BaseEntity {

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("主键")
	private String id;
	/**
	 * 结算主体id
	 */
	@ExcelAttribute(name = "结算主体id", isNotEmpty = true, errorInfo = "结算主体id不能为空", maxLength = 32)
	@NotBlank(message = "结算主体id不能为空")
	@Length(max = 32, message = "结算主体id不能超过32个字符")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("结算主体id")
	private String settleId;
	/**
	 * 结算主体
	 */
	@ExcelAttribute(name = "结算主体", maxLength = 32)
	@Length(max = 32, message = "结算主体不能超过32个字符")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("结算主体")
	private String settleName;
	/**
	 * 结算主体
	 */
	@ExcelAttribute(name = "结算主体", maxLength = 32)
	@Length(max = 32, message = "结算主体不能超过32个字符")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("结算主体")
	private String settleNo;
	/**
	 * 原表表头
	 */
	@ExcelAttribute(name = "原表表头", isNotEmpty = true, errorInfo = "原表表头不能为空", maxLength = 50)
	@NotBlank(message = "原表表头不能为空")
	@Length(max = 50, message = "原表表头不能超过50个字符")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("原表表头")
	private String excelTitle;
	/**
	 * 配置id
	 */
	@ExcelAttribute(name = "配置id", isNotEmpty = true, errorInfo = "配置id不能为空", maxLength = 32)
	@NotBlank(message = "配置id不能为空")
	@Length(max = 32, message = "配置id不能超过32个字符")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("配置id")
	private String configId;
	/**
	 * 配置名称
	 */
	@ExcelAttribute(name = "配置名称", maxLength = 32)
	@Length(max = 32, message = "配置名称不能超过32个字符")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("配置名称")
	private String configName;

	/**
	 * 保存类型：0:保存；1不保存
	 */
	@ExcelAttribute(name = "保存类型：0:保存；1不保存")
	@HeadFontStyle(fontHeightInPoints = 11)
	@ExcelProperty("保存类型：0:保存；1不保存")
	private Integer saveType;

}
