| | |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import jakarta.validation.constraints.Size; |
| | | import java.time.Instant; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | |
| | | |
| | | /** 采集器主键 */ |
| | | private Long collectorId; |
| | | |
| | | /** 所属设备适配器实例;不表达测试占用。 */ |
| | | private Long adapterId; |
| | | |
| | | /** 适配器最近一次观测该采集器的时间(UTC)。 */ |
| | | private Instant lastSeenAtUtc; |
| | | |
| | | /** 设备综合查询条件 */ |
| | | private String device; |
| | |
| | | /** 在线状态:0离线、1在线 */ |
| | | private String onlineStatus; |
| | | |
| | | /** 测试状态:0未测试、1测试中 */ |
| | | /** 测试状态展示值,由测试绑定事实派生,不写入采集器表。 */ |
| | | private String testStatus; |
| | | |
| | | /** 当前测试 */ |
| | | /** 当前测试展示值,由测试绑定事实派生,不写入采集器表。 */ |
| | | private String currentTest; |
| | | |
| | | /** 当前样品名称 */ |
| | | /** 兼容旧页面的派生字段,不参与采集器登记持久化。 */ |
| | | private String currentSampleName; |
| | | |
| | | /** 状态:0启用、1禁用 */ |
| | |
| | | this.collectorId = collectorId; |
| | | } |
| | | |
| | | public Long getAdapterId() { return adapterId; } |
| | | |
| | | public void setAdapterId(Long adapterId) { this.adapterId = adapterId; } |
| | | |
| | | public Instant getLastSeenAtUtc() { return lastSeenAtUtc; } |
| | | |
| | | public void setLastSeenAtUtc(Instant lastSeenAtUtc) { this.lastSeenAtUtc = lastSeenAtUtc; } |
| | | |
| | | public String getDevice() |
| | | { |
| | | return device; |