renkang
2026-04-03 9da725bbfc582042a5a448bff5a2eb990527fda2
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
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 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;
 
/**
 * 设备关联房间
 * @author renkang
 * @date 2026/04/03
 */
@Data
@ApiModel("设备关联房间")
@TableName("`yw_electrical_room`")
public class YwElectricalRoom extends LoginUserModel {
 
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", example = "1")
    @ExcelColumn(name = "主键")
    private Integer id;
 
    @ApiModelProperty(value = "创建人编码", example = "1")
    @ExcelColumn(name = "创建人编码")
    private Integer creator;
 
    @ApiModelProperty(value = "创建时间")
    @ExcelColumn(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
 
    @ApiModelProperty(value = "更新人编码", example = "1")
    @ExcelColumn(name = "更新人编码")
    private Integer editor;
 
    @ApiModelProperty(value = "更新时间")
    @ExcelColumn(name = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date editDate;
 
    @ApiModelProperty(value = "是否删除0否 1是", example = "0")
    @ExcelColumn(name = "是否删除0否 1是")
    private Integer isdeleted;
 
    @ApiModelProperty(value = "备注")
    @ExcelColumn(name = "备注")
    private String remark;
 
    @ApiModelProperty(value = "业务类型 0电表 1空调", example = "0")
    @ExcelColumn(name = "业务类型")
    private Integer type;
 
    @ApiModelProperty(value = "房源编码(关联yw_room)", example = "1")
    @ExcelColumn(name = "房源编码")
    private Integer roomId;
 
    @ApiModelProperty(value = "关联主键(电表关联:yw_electrical;空调关联:yw_conditioner)", example = "1")
    @ExcelColumn(name = "关联主键")
    private Integer objId;
 
    @ApiModelProperty(value = "排序码", example = "1")
    @ExcelColumn(name = "排序码")
    private Integer sortnum;
 
    @ApiModelProperty(value = "房间名称")
    @TableField(exist = false)
    private String roomName;
 
    @ApiModelProperty(value = "设备名称")
    @TableField(exist = false)
    private String objName;
}