package org.jeecg.modules.spare.entity; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.util.Date; import java.math.BigDecimal; import java.util.List; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import org.jeecg.common.constant.CommonConstant; import org.jeecg.common.system.base.entity.JeecgEntity; import org.jeecg.modules.spare.vo.AuxiliaryUnitVo; import org.springframework.format.annotation.DateTimeFormat; import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecg.common.aspect.annotation.Dict; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** * @Description: mom_eam_spare_part * @Author: jeecg-boot * @Date: 2023-06-20 * @Version: V1.0 */ @Data @TableName("mom_eam_spare_part") @Accessors(chain = true) @EqualsAndHashCode(callSuper = false) @ApiModel(value="mom_eam_spare_part对象", description="mom_eam_spare_part") public class SparePart extends JeecgEntity implements Serializable { private static final long serialVersionUID = 1L; /**备件分类id*/ @Excel(name = "备件分类id", width = 15) @ApiModelProperty(value = "备件分类id") private String sparePartCategoryId; /**备件编码*/ @Excel(name = "备件编码", width = 15) @ApiModelProperty(value = "备件编码") private String num; /**备件名称*/ @Excel(name = "备件名称", width = 15) @ApiModelProperty(value = "备件名称") private String name; /**状态 0 禁用 1 启用*/ @Excel(name = "状态 0 禁用 1 启用", width = 15) @ApiModelProperty(value = "状态 0 禁用 1 启用") private String status = CommonConstant.STATUS_1; /**型号*/ @Excel(name = "型号", width = 15) @ApiModelProperty(value = "型号") private String model; /**规则*/ @Excel(name = "规则", width = 15) @ApiModelProperty(value = "规则") private String specification; /**制造商*/ @Excel(name = "制造商", width = 15) @ApiModelProperty(value = "制造商") @Dict(dicCode = "id",dictTable="mom_base_constructor",dicText="name") private String constructorId; /**主单位id*/ @Excel(name = "主单位id", width = 15) @ApiModelProperty(value = "主单位id") @Dict(dicCode = "id",dictTable="mom_base_unit",dicText="name") private String mainUnitId; /**辅单位id*/ @Excel(name = "辅单位id", width = 15) @ApiModelProperty(value = "辅单位id") @Dict(dicCode = "id",dictTable="mom_base_unit",dicText="name") private String auxiliaryUnitId; /**换算比例*/ @Excel(name = "换算比例", width = 15) @ApiModelProperty(value = "换算比例") private String conversionRatio; /**批次管理标识*/ @Excel(name = "批次管理标识", width = 15) @ApiModelProperty(value = "批次管理标识") private Integer batchManagedFlag; /**有效期管理标识*/ @Excel(name = "有效期管理标识", width = 15) @ApiModelProperty(value = "有效期管理标识") private Integer validityManagedFlag; /**有效期*/ @Excel(name = "有效期", width = 15) @ApiModelProperty(value = "有效期") private Integer validityPeriod; /**有效期单位*/ @Excel(name = "有效期单位", width = 15) @ApiModelProperty(value = "有效期单位") @Dict(dicCode = "id",dictTable="mom_base_unit",dicText="name") private String validityPeriodUnitId; /**库存上限制*/ @Excel(name = "库存上限制", width = 15) @ApiModelProperty(value = "库存上限制") private Integer inventoryUpperLimit; /**库存下限制*/ @Excel(name = "库存下限制", width = 15) @ApiModelProperty(value = "库存下限制") private Integer inventoryLowerLimit; /**库存预警下限*/ @Excel(name = "库存预警下限", width = 15) @ApiModelProperty(value = "库存预警下限") private Integer inventoryWarnLimit; /**经济订货量*/ @Excel(name = "经济订货量", width = 15) @ApiModelProperty(value = "经济订货量") private Integer economicOrderQuantity; /**采购提前期*/ @Excel(name = "采购提前期", width = 15) @ApiModelProperty(value = "采购提前期") private Integer purchaseLeadTime; /**租户id*/ @Excel(name = "租户id", width = 15) @ApiModelProperty(value = "租户id") private String tenantId; /**删除状态(0-正常,1-已删除)*/ @Excel(name = "删除状态(0-正常,1-已删除)", width = 15) @ApiModelProperty(value = "删除状态(0-正常,1-已删除)") @TableLogic private Integer delFlag = CommonConstant.DEL_FLAG_0; /**备注*/ @Excel(name = "备注", width = 15) @ApiModelProperty(value = "备注") private String remark; /**备用字段1*/ @Excel(name = "备用字段1", width = 15) @ApiModelProperty(value = "备用字段1") private String uda1; /**备用字段2*/ @Excel(name = "备用字段2", width = 15) @ApiModelProperty(value = "备用字段2") private String uda2; /**备用字段3*/ @Excel(name = "备用字段3", width = 15) @ApiModelProperty(value = "备用字段3") private String uda3; /**备用字段4*/ @Excel(name = "备用字段4", width = 15) @ApiModelProperty(value = "备用字段4") private String uda4; /**备用字段5*/ @Excel(name = "备用字段5", width = 15) @ApiModelProperty(value = "备用字段5") private String uda5; @TableField(exist = false) private List auxiliaryUnits; @TableField(exist = false) private Double totalMainQuantity; @TableField(exist = false) private Double totalAuxiliaryQuantity; }