EquipmentSparepartSupplies.java 7.7 KB
package com.skua.modules.supplies.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.skua.core.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * 物料信息表
 */
@Data
@TableName("equipment_sparepart_supplies")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "equipment_sparepart_supplies对象", description = "物料信息表")
public class EquipmentSparepartSupplies {

    /**
     * id
     */
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
    private String id;

    /**所属厂区*/
    @Excel(name = "所属厂区", width = 15)
    @ApiModelProperty(value = "所属厂区")
    @Dict(dictTable = "sys_depart", dicCode="id", dicText = "depart_name")
    private String departId;

    /**
     * 物料编号
     */
    @Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private String sparepartCode;
    /**
     * 物料名称
     */
    @Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String sparepartName;
    /**
     * 物料类型
     */
    @Excel(name = "物料类型", width = 15)
    @ApiModelProperty(value = "物料类型")
    @Dict(dicCode = "id", dictTable = "equipment_sparepart_type", dicText = "item_text")
    private String sparepartType;
    /**
     * 物料图片
     */
    @ApiModelProperty(value = "物料图片")
    private String sparepartImg;
    /**
     * 更换周期
     */
    @Excel(name = "更换周期", width = 15)
    @ApiModelProperty(value = "更换周期")
    private String changeCircle;
    /**
     * 规格型号
     */
    @Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private String specification;
    /**
     * 生产厂商
     */
    @Excel(name = "生产厂商", width = 15)
    @ApiModelProperty(value = "生产厂商")
    @Dict(dicCode = "id",dictTable = "`equipment_brand`",dicText = "brand_company")
    private String manufacturer;
    /**
     * 计量单位
     */
    @Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    private String measuringUnit;
    /**
     * 库存金额
     */
    @Excel(name = "库存金额", width = 15)
    @ApiModelProperty(value = "库存金额")
    private java.math.BigDecimal storageMoney;
    /**
     * 库存上限
     */
    @Excel(name = "库存上限", width = 15)
    @ApiModelProperty(value = "库存上限")
    private java.math.BigDecimal storageMaxNum;
    /**
     * 库存下限
     */
    @Excel(name = "库存下限", width = 15)
    @ApiModelProperty(value = "库存下限")
    private java.math.BigDecimal storageMinNum;
    /**
     * 当前库存
     */
    @Excel(name = "当前总库存", width = 15)
    @ApiModelProperty(value = "当前总库存")
    private BigDecimal storageNum;

    /**
     * 材质
     */
    @Excel(name = "材质", width = 15)
    @ApiModelProperty(value = "材质")
    private String texture;
    /**
     * 二维码
     */
    @ApiModelProperty(value = "二维码")
    private String qrCode;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 版本(0/1)
     */
    @Excel(name = "版本(0/1)", width = 15)
    @ApiModelProperty(value = "版本(0/1)")
    private Integer version;
    /**
     * 创建人id
     */
    @Excel(name = "创建人id", width = 15)
    @ApiModelProperty(value = "创建人id")
    private String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人id
     */
    @Excel(name = "修改人id", width = 15)
    @ApiModelProperty(value = "修改人id")
    private String updateBy;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 所属部门
     */
    @Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
    private String createDept;
    /**
     * 所属公司
     */
    @Excel(name = "所属公司", width = 15)
    @ApiModelProperty(value = "所属公司")
    private String createCmpy;
    /**
     * 删除标识,0:正常,1:删除
     */
    @Excel(name = "删除标识,0:正常,1:删除", width = 15)
    @ApiModelProperty(value = "删除标识,0:正常,1:删除")
    private Integer delFlag;
    /**
     * 单价
     */
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private java.math.BigDecimal unitPrice;
    /**
     * 备件名称值
     */
    @Excel(name = "备件名称值", width = 15)
    @ApiModelProperty(value = "备件名称值")
    private String sparepartValue;
    /**
     * 备件详细名称
     */
    @Excel(name = "备件详细名称", width = 15)
    @ApiModelProperty(value = "备件详细名称")
    private String sparepartAlias;
    /**
     * 备件详细名称2
     */
    @Excel(name = "备件详细名称2", width = 15)
    @ApiModelProperty(value = "备件详细名称2")
    private String sparepartAliass;
    /**
     * 类别大类
     */
    @Excel(name = "类别大类", width = 15)
    @ApiModelProperty(value = "类别大类")
    private String topType;
    /**
     * 类别树路径
     */
    @Excel(name = "类别树路径", width = 15)
    @ApiModelProperty(value = "类别树路径")
    private String typeTreePath;
    /**
     * 排序字段
     */
    @Excel(name = "排序字段", width = 15)
    @ApiModelProperty(value = "排序字段")
    private Integer orderNum;
    /**
     * 生成时间
     */
    @Excel(name = "生成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "生成时间")
    private Date inventoryUpdateTime;

    /** 物料属性 */
    @Excel(name = "物料属性", width = 15)
    @ApiModelProperty(value = "物料属性")
    @Dict(dicCode = "sparepart_attribute")
    private String sparepartAttribute;



    @ApiModelProperty(value = "扩展:物料类别名称")
    @TableField(exist=false)
    private String sparepartTypeName;

    @ApiModelProperty(value = "扩展:去年出库数量")
    @TableField(exist=false)
    private String outNum;

    @TableField(exist=false)
    @ApiModelProperty(value = "扩展:总价")
    private String totalPrice;
    @TableField(exist=false)
    @ApiModelProperty(value = "扩展:计划采购数量")
    private String purchaseNum;

    @TableField(exist=false)
    @ApiModelProperty(value = "扩展:货号")
    private String goodCode;
    @TableField(exist=false)
    @ApiModelProperty(value = "扩展:计划采购数量")
    private String sparepartId;

    public String getSparepartId() {
        return id;
    }


}