/*
 *    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.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;

/**
 * 工资报表配置-薪资配置6
 *
 * @author hgw
 * @date 2022-08-05 11:40:14
 */
@Data
@TableName("t_salary_config_standard")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "工资报表配置-薪资配置6")
public class TSalaryConfigStandard extends BaseEntity {

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ExcelProperty("主键")
	private String id;
	/**
	 * 中文名（Excel表头）
	 */
	@ExcelAttribute(name = "中文名（Excel表头）", isNotEmpty = true, errorInfo = "中文名（Excel表头）不能为空", maxLength = 32)
	@NotBlank(message = "中文名（Excel表头）不能为空")
	@Length(max = 32, message = "中文名（Excel表头）不能超过32个字符")
	@ExcelProperty("中文名（Excel表头）")
	private String cnName;
	/**
	 * 数据库字段名
	 */
	@ExcelAttribute(name = "数据库字段名", maxLength = 32)
	@Length(max = 32, message = "数据库字段名不能超过32个字符")
	@ExcelProperty("数据库字段名")
	private String dbFiedName;
	/**
	 * JAVA属性字段名
	 */
	@ExcelAttribute(name = "JAVA属性字段名", maxLength = 32)
	@Length(max = 32, message = "JAVA属性字段名不能超过32个字符")
	@ExcelProperty("JAVA属性字段名")
	private String javaFiedName;
	/**
	 * 模板类型（数据字典）
	 */
	@ExcelAttribute(name = "模板类型（数据字典）", isNotEmpty = true, errorInfo = "模板类型（数据字典）不能为空", maxLength = 32)
	@NotBlank(message = "模板类型（数据字典）不能为空")
	@Length(max = 32, message = "模板类型（数据字典）不能超过32个字符")
	@ExcelProperty("模板类型（数据字典）")
	private String modelType;
	/**
	 * 是否是必须
	 */
	@ExcelAttribute(name = "是否是必须", isNotEmpty = true, errorInfo = "是否是必须不能为空", maxLength = 1)
	@NotBlank(message = "是否是必须不能为空")
	@Length(max = 1, message = "是否是必须不能超过1个字符")
	@ExcelProperty("是否是必须")
	private String isMustNeed;
	/**
	 * 是否进行计算扣税：1：计算；0：不计算
	 */
	@ExcelAttribute(name = "是否进行计算扣税：1：计算；0：不计算", isNotEmpty = true, errorInfo = "是否进行计算扣税：1：计算；0：不计算不能为空")
	@NotBlank(message = "是否进行计算扣税：1：计算；0：不计算不能为空")
	@ExcelProperty("是否进行计算扣税：1：计算；0：不计算")
	private Integer isTax;
	/**
	 * 排序项
	 */
	@ExcelAttribute(name = "排序项")
	@ExcelProperty("排序项")
	private Integer orderLine;

}
