feat: add SpaceNodeEquipmentDTO for equipment extension
This commit is contained in:
parent
aa3f6c4ced
commit
38684c6171
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.ether.pms.mdm.dto;
|
||||||
|
|
||||||
|
import com.ether.pms.mdm.entity.SpaceNode;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SpaceNodeDTO {
|
||||||
|
private UUID id;
|
||||||
|
private String code;
|
||||||
|
private String name;
|
||||||
|
private String fullName;
|
||||||
|
private String shortName;
|
||||||
|
private SpaceNode.NodeCategory nodeCategory;
|
||||||
|
private SpaceNode.NodeType nodeType;
|
||||||
|
private String nodeTypeName;
|
||||||
|
private UUID parentId;
|
||||||
|
private Integer level;
|
||||||
|
private Integer sortOrder;
|
||||||
|
private String status;
|
||||||
|
private String deliveryStatus;
|
||||||
|
private String decorationStatus;
|
||||||
|
private String usageType;
|
||||||
|
private BigDecimal buildingArea;
|
||||||
|
private BigDecimal usableArea;
|
||||||
|
private BigDecimal sharedArea;
|
||||||
|
private BigDecimal landArea;
|
||||||
|
private BigDecimal longitude;
|
||||||
|
private BigDecimal latitude;
|
||||||
|
private BigDecimal altitude;
|
||||||
|
private Integer floorNumber;
|
||||||
|
private String province;
|
||||||
|
private String city;
|
||||||
|
private String district;
|
||||||
|
private String street;
|
||||||
|
private String address;
|
||||||
|
private String attributes;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.ether.pms.mdm.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class SpaceNodeEquipmentDTO extends SpaceNodeDTO {
|
||||||
|
|
||||||
|
private Boolean isEquipment;
|
||||||
|
private Integer designLifeYears;
|
||||||
|
private BigDecimal ratedPower;
|
||||||
|
private String ratedVoltage;
|
||||||
|
private BigDecimal ratedCurrent;
|
||||||
|
private String maintenanceVendor;
|
||||||
|
private String maintenanceVendorContact;
|
||||||
|
private String maintenanceVendorPhone;
|
||||||
|
private String maintenanceContractNo;
|
||||||
|
private LocalDate maintenanceContractStart;
|
||||||
|
private LocalDate maintenanceContractEnd;
|
||||||
|
private String specialEquipmentType;
|
||||||
|
private String specialEquipmentCert;
|
||||||
|
private Integer inspectionCycle;
|
||||||
|
private LocalDate nextInspectionDate;
|
||||||
|
private LocalDate lastInspectionDate;
|
||||||
|
private String lastInspectionResult;
|
||||||
|
private List<SparePartInfo> commonSpareParts;
|
||||||
|
private BigDecimal energyConsumptionStandard;
|
||||||
|
private String installationEnvironment;
|
||||||
|
private String protectionLevel;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class SparePartInfo {
|
||||||
|
private String name;
|
||||||
|
private String model;
|
||||||
|
private Integer quantity;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue