package com.bonus.material.basic.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 单位类型管理对象 bm_unit_type
 * 
 * @author hongchao
 * @date 2024-12-27
 */


@Data
@ToString
public class BmUnitType
{
    private static final long serialVersionUID = 1L;
    @Excel(name = "序号", isSequence = true, type = Excel.Type.EXPORT)
    int sequence;

    /** 字典编码 */
    @ApiModelProperty(value = "字典编码")
    private Long dictCode;

    /** 单位类型名称 */
    @Excel(name = "单位类型名称")
    private String dictLabel;

    /** 字典键值 */
    @Excel(name = "字典键值")
    private String dictValue;

    /** 字典排序 */
    @Excel(name = "字典排序")
    private Long dictSort;

    /** 字典类型 */
    @ApiModelProperty(value = "字典类型")
    private String dictType;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 创建时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private String createTime;

}
