package com.bonus.material.scrap.domain;

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 java.util.Date;

/**
 * 报废原因配置对象 scrap_reason
 * 
 * @author hongchao
 * @date 2025-01-07
 */


@Data
@ToString
public class ScrapReason extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    private String keyWord;

    /** 二级规格型号id */

    @ApiModelProperty(value = "规格型号id")
    private Long parentId;

    /** 二级类型 */
    @Excel(name = "类型")
    @ApiModelProperty(value = "二级类型")
    private String parentName;

    /** 三级规格型号id */

    @ApiModelProperty(value = "规格型号id")
    private Long typeId;

    /** 三级类型 */
    @Excel(name = "设备名称")
    @ApiModelProperty(value = "三级类型")
    private String typeName;

    /** 报废原因 */
    @Excel(name = "报废原因", width = 40)
    @ApiModelProperty(value = "报废原因")
    private String reason;


    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /** 修改人 */
    @Excel(name = "修改人")
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 40, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
//    @Excel(name = "备注", width = 40)
    @ApiModelProperty(value = "备注")
    private String remark;

}
