renkang
2025-05-13 0a99001be87811ebb884b8f3f491f48054a22330
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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;
 
 
}