刘力
3 years ago
3 changed files with 138 additions and 0 deletions
-
1pom.xml
-
28storeroom/pom.xml
-
109storeroom/src/main/java/com/storeroom/modules/device/domain/DeviceInfo.java
@ -0,0 +1,28 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
|
<parent> |
||||
|
<artifactId>yxk_StoreroomSystem</artifactId> |
||||
|
<groupId>com.storeroom</groupId> |
||||
|
<version>1.0</version> |
||||
|
</parent> |
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
|
<artifactId>storeroom</artifactId> |
||||
|
<name>库房管理</name> |
||||
|
|
||||
|
<properties> |
||||
|
<maven.compiler.source>17</maven.compiler.source> |
||||
|
<maven.compiler.target>17</maven.compiler.target> |
||||
|
</properties> |
||||
|
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.storeroom</groupId> |
||||
|
<artifactId>common</artifactId> |
||||
|
<version>1.0</version> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
|
||||
|
</project> |
@ -0,0 +1,109 @@ |
|||||
|
package com.storeroom.modules.device.domain; |
||||
|
|
||||
|
|
||||
|
import com.storeroom.base.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
import javax.persistence.Column; |
||||
|
import javax.persistence.Entity; |
||||
|
import javax.persistence.Id; |
||||
|
import javax.persistence.Table; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Objects; |
||||
|
|
||||
|
@Entity |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@Table(name = "device_info") |
||||
|
public class DeviceInfo extends BaseEntity implements Serializable { |
||||
|
|
||||
|
@Id |
||||
|
@Column(name = "id") |
||||
|
@NotNull(groups = Update.class) |
||||
|
@ApiModelProperty(value = "ID", hidden = true) |
||||
|
private String id; |
||||
|
|
||||
|
@Column(name = "tid") |
||||
|
@ApiModelProperty(value = "标签id") |
||||
|
private String tid; |
||||
|
|
||||
|
@Column(name = "device_type_id") |
||||
|
@ApiModelProperty(value = "设备类型id") |
||||
|
private String deviceTypeId; |
||||
|
|
||||
|
@Column(name = "supplier_id") |
||||
|
@ApiModelProperty(value = "设备供应商id") |
||||
|
private String supplierId; |
||||
|
|
||||
|
@Column(name = "device_name") |
||||
|
@ApiModelProperty(value = "设备名称") |
||||
|
private String deviceName; |
||||
|
|
||||
|
@Column(name = "device_ip") |
||||
|
@ApiModelProperty(value = "设备接口ip") |
||||
|
private String deviceIp; |
||||
|
|
||||
|
@Column(name = "device_port") |
||||
|
@ApiModelProperty(value = "设备端口") |
||||
|
private Integer devicePort; |
||||
|
|
||||
|
@Column(name = "device_account") |
||||
|
@ApiModelProperty(value = "设备账号") |
||||
|
private String deviceAccount; |
||||
|
|
||||
|
@Column(name = "device_password") |
||||
|
@ApiModelProperty(value = "设备密码") |
||||
|
private String devicePassword; |
||||
|
|
||||
|
@Column(name = "device_state") |
||||
|
@ApiModelProperty(value = "设备状态") |
||||
|
private Integer deviceState; |
||||
|
|
||||
|
@Column(name = "device_id") |
||||
|
@ApiModelProperty(value = "设备id") |
||||
|
private String deviceId; |
||||
|
|
||||
|
@Column(name = "cupboard_No") |
||||
|
@ApiModelProperty(value = "设备柜号") |
||||
|
private Integer cupboardNo; |
||||
|
|
||||
|
@Column(name = "row_No") |
||||
|
@ApiModelProperty(value = "设备柜号") |
||||
|
private Integer rowNo; |
||||
|
|
||||
|
@Column(name = "column_row_No") |
||||
|
@ApiModelProperty(value = "设备每列层号") |
||||
|
private Integer columnRowNo; |
||||
|
|
||||
|
@Column(name = "part_No") |
||||
|
@ApiModelProperty(value = "节数") |
||||
|
private Integer partNo; |
||||
|
|
||||
|
@Column(name = "is_linkage") |
||||
|
@ApiModelProperty(value = "联动操作") |
||||
|
private Integer isLinkage; |
||||
|
|
||||
|
@Column(name = "is_callback") |
||||
|
@ApiModelProperty(value = "回调确认") |
||||
|
private Integer isCallback; |
||||
|
|
||||
|
@Column(name = "is_notice") |
||||
|
@ApiModelProperty(value = "下发通知") |
||||
|
private Integer isNotice; |
||||
|
|
||||
|
@Override |
||||
|
public boolean equals(Object o) { |
||||
|
if (this == o) return true; |
||||
|
if (o == null || getClass() != o.getClass()) return false; |
||||
|
DeviceInfo that = (DeviceInfo) o; |
||||
|
return Objects.equals(id, that.id) && Objects.equals(tid, that.tid) && Objects.equals(deviceTypeId, that.deviceTypeId) && Objects.equals(supplierId, that.supplierId) && Objects.equals(deviceName, that.deviceName) && Objects.equals(deviceIp, that.deviceIp) && Objects.equals(devicePort, that.devicePort) && Objects.equals(deviceAccount, that.deviceAccount) && Objects.equals(devicePassword, that.devicePassword) && Objects.equals(deviceState, that.deviceState) && Objects.equals(deviceId, that.deviceId) && Objects.equals(cupboardNo, that.cupboardNo) && Objects.equals(rowNo, that.rowNo) && Objects.equals(columnRowNo, that.columnRowNo) && Objects.equals(partNo, that.partNo) && Objects.equals(isLinkage, that.isLinkage) && Objects.equals(isCallback, that.isCallback) && Objects.equals(isNotice, that.isNotice); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public int hashCode() { |
||||
|
return Objects.hash(id, tid, deviceTypeId, supplierId, deviceName, deviceIp, devicePort, deviceAccount, devicePassword, deviceState, deviceId, cupboardNo, rowNo, columnRowNo, partNo, isLinkage, isCallback, isNotice); |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue