package com.doumee.dao.business.model; import com.baomidou.mybatisplus.annotation.TableField; import com.doumee.core.annotation.excel.ExcelColumn; import com.doumee.core.model.LoginUserModel; import com.doumee.dao.system.model.Multifile; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.Date; import java.math.BigDecimal; /** * 运维资产信息表 * @author 江蹄蹄 * @date 2025/01/06 11:05 */ @Data @ApiModel("运维资产信息表") @TableName("`yw_material`") public class YwMaterial extends LoginUserModel { @TableId(type = IdType.AUTO) @ApiModelProperty(value = "主键", example = "1") private Integer id; @ApiModelProperty(value = "创建人编码", example = "1") private Integer creator; @ApiModelProperty(value = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date createDate; @ApiModelProperty(value = "更新人编码", example = "1") private Integer editor; @ApiModelProperty(value = "更新时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date editDate; @ApiModelProperty(value = "是否删除0否 1是", example = "1") private Integer isdeleted; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "名称") @ExcelColumn(name="物料名称",index = 1,width = 10) private String name; @ApiModelProperty(value = "状态 0启用 1禁用", example = "1") @ExcelColumn(name="状态",index = 8,width = 8,valueMapping = "0=启用;1=禁用;") private Integer status; @ApiModelProperty(value = "编号") @ExcelColumn(name="物料编号",index = 0,width = 10) private String code; @ApiModelProperty(value = "所属一级分类编码(关联category)", example = "1") private Integer parentCateId; @ApiModelProperty(value = "所属二级分类编码(关联category)", example = "1") private Integer cateId; @ApiModelProperty(value = "条码") @ExcelColumn(name="条码",index = 2,width = 10) private String qrcode; @ApiModelProperty(value = "排序码", example = "1") private Integer sortnum; @ApiModelProperty(value = "品牌") @ExcelColumn(name="品牌",index = 3,width = 10) private String brand; @ApiModelProperty(value = "规格型号") @ExcelColumn(name="规格型号",index = 4,width = 10) private String attr; @ApiModelProperty(value = "安全库存(下限)", example = "1") @ExcelColumn(name="安全库存(下限)",index = 6,width = 16) private BigDecimal minStock; @ApiModelProperty(value = "安全库存(上限)", example = "1") @ExcelColumn(name="安全库存(上限)",index = 7,width = 16) private BigDecimal maxStock; @ApiModelProperty(value = "单位") @ExcelColumn(name="单位",index = 5,width = 10) private String unitName; @ApiModelProperty(value = "所属房源编码(关联yw_room)", example = "1") private Integer roomId; @ApiModelProperty(value = "是否自动编码:0=否;1=是;", example = "1") private Integer autoCode; @ApiModelProperty(value = "附件信息", example = "1") @TableField(exist = false) private Multifile multifile; @ApiModelProperty(value = "所属项目主键", example = "1") @TableField(exist = false) private Integer projectId; @ApiModelProperty(value = "楼宇主键", example = "1") @TableField(exist = false) private Integer buildingId; @ApiModelProperty(value = "楼层主键", example = "1") @TableField(exist = false) private Integer floorId; }