liusuyi
2025-03-22 b3245b2608e7f4dadc24e26ecf43107dae1c33ee
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
package com.ard.tianyu.domain.entity;
 
import com.ard.common.annotation.Excel;
import com.ard.common.core.domain.BaseEntity;
import com.ard.tianyu.domain.receiver.BoxInfoReceiver;
import lombok.*;
 
import java.util.Objects;
 
/**
 * 无人机盒子对象 uav_box
 * 
 * @author ruoyi
 * @date 2025-03-04
 */
 
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UavBoxEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;
 
    /** 主键 */
    private Long id;
 
    /** 盒子编码 */
    @Excel(name = "盒子编码")
    private String boxSn;
 
    /** 盒子名称 */
    @Excel(name = "盒子名称")
    private String boxName;
 
    /** 盒子版本 */
    @Excel(name = "盒子版本")
    private String boxVersion;
 
    /** 在线状态 */
    @Excel(name = "在线状态")
    private Integer onLine;
 
    /** 最后任务id */
    @Excel(name = "最后任务id")
    private Integer lastTaskId;
 
    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;
 
    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;
 
 
    /**
     * 判断两个无人机对象的属性是否相同
     */
    public boolean isSameAs(BoxInfoReceiver other) {
        return Objects.equals(this.boxName, other.getBoxName()) &&
                Objects.equals(this.boxVersion, other.getBoxVersion()) &&
                Objects.equals(this.lastTaskId, other.getLastTaskId()) &&
                Objects.equals(this.onLine, other.getOnLine());
        // 对比其他属性
    }
 
}