zhangherong
2025-05-15 706053d51e4f1663f3c1959a73d59e8cde3880ae
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/entity/EamMaintenanceStandardDetail.java
@@ -9,6 +9,8 @@
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.eam.dto.MaintenanceStandardImport;
import org.jeecg.modules.eam.dto.SecondMaintenanceStandardImport;
import org.jeecg.modules.eam.dto.ThirdMaintenanceStandardImport;
import org.jeecg.modules.eam.dto.WeekMaintenanceStandardImport;
import java.io.Serializable;
@@ -48,6 +50,9 @@
   /**保养项序号*/
   @ApiModelProperty(value = "保养项序号")
   private Integer itemCode;
   /**部位*/
   @ApiModelProperty(value = "部位")
   private String itemPart;
   /**保养项*/
    @ApiModelProperty(value = "保养项")
   private String itemName;
@@ -57,13 +62,20 @@
   /**保养要求*/
    @ApiModelProperty(value = "保养要求")
   private String itemDemand;
   /**保养要求2*/
   @ApiModelProperty(value = "保养要求2")
   private String itemDemandAlias;
   /**检查方法*/
   @ApiModelProperty(value = "检查方法")
   private String checkMethod;
   public EamMaintenanceStandardDetail(){}
   public EamMaintenanceStandardDetail(MaintenanceStandardImport dto) {
      this.itemCode = dto.getItemCode();
      this.itemName = dto.getItemName() + " " + dto.getItemPart() + " " + dto.getItemContent();
      this.itemPart = dto.getItemPart();
      this.itemName = dto.getItemName();
      this.itemDemand = dto.getItemDemand();
   }
@@ -73,4 +85,22 @@
      this.subItemName = dto.getSubItemName() + " " + (dto.getItemPart() == null ? "" : dto.getItemPart());
      this.itemDemand = dto.getItemDemand();
   }
   public EamMaintenanceStandardDetail(SecondMaintenanceStandardImport dto) {
      this.itemCode = dto.getItemCode();
      this.itemName = dto.getItemName();
      this.itemPart = dto.getItemPart();
      this.itemDemand = dto.getItemDemand();
      this.itemDemandAlias = dto.getItemDemandAlias();
      this.checkMethod = dto.getCheckMethod();
   }
   public EamMaintenanceStandardDetail(ThirdMaintenanceStandardImport dto) {
      this.itemCode = dto.getItemCode();
      this.itemName = dto.getItemName();
      this.itemPart = dto.getItemPart();
      this.itemDemand = dto.getItemDemand();
      this.itemDemandAlias = dto.getItemDemandAlias();
      this.checkMethod = dto.getCheckMethod();
   }
}