|
@@ -5,9 +5,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import com.mybatisflex.annotation.Id;
|
|
import com.mybatisflex.annotation.Id;
|
|
import com.mybatisflex.annotation.Table;
|
|
import com.mybatisflex.annotation.Table;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
-import lombok.EqualsAndHashCode;
|
|
|
|
-import java.io.Serial;
|
|
|
|
-import java.util.Date;
|
|
|
|
import org.dromara.easyes.annotation.HighLight;
|
|
import org.dromara.easyes.annotation.HighLight;
|
|
import org.dromara.easyes.annotation.IndexField;
|
|
import org.dromara.easyes.annotation.IndexField;
|
|
import org.dromara.easyes.annotation.IndexId;
|
|
import org.dromara.easyes.annotation.IndexId;
|
|
@@ -16,7 +13,10 @@ import org.dromara.easyes.annotation.rely.Analyzer;
|
|
import org.dromara.easyes.annotation.rely.FieldStrategy;
|
|
import org.dromara.easyes.annotation.rely.FieldStrategy;
|
|
import org.dromara.easyes.annotation.rely.FieldType;
|
|
import org.dromara.easyes.annotation.rely.FieldType;
|
|
import org.dromara.easyes.annotation.rely.IdType;
|
|
import org.dromara.easyes.annotation.rely.IdType;
|
|
-import org.eco.common.orm.core.domain.BaseEntity;
|
|
|
|
|
|
+
|
|
|
|
+import java.io.Serial;
|
|
|
|
+import java.io.Serializable;
|
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 故障案例对象 als_fault_case_t
|
|
* 故障案例对象 als_fault_case_t
|
|
@@ -25,10 +25,9 @@ import org.eco.common.orm.core.domain.BaseEntity;
|
|
* @date 2024-11-14
|
|
* @date 2024-11-14
|
|
*/
|
|
*/
|
|
@Data
|
|
@Data
|
|
-@EqualsAndHashCode(callSuper = true)
|
|
|
|
@Table(value = "als_fault_case_t")
|
|
@Table(value = "als_fault_case_t")
|
|
@IndexName("fault_case_index")
|
|
@IndexName("fault_case_index")
|
|
-public class FaultCase extends BaseEntity {
|
|
|
|
|
|
+public class FaultCase implements Serializable {
|
|
@Serial
|
|
@Serial
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
@@ -79,7 +78,7 @@ public class FaultCase extends BaseEntity {
|
|
@ExcelProperty(value = "故障现象")
|
|
@ExcelProperty(value = "故障现象")
|
|
@IndexField(value = "pContent", fieldType = FieldType.TEXT, strategy = FieldStrategy.NOT_EMPTY,
|
|
@IndexField(value = "pContent", fieldType = FieldType.TEXT, strategy = FieldStrategy.NOT_EMPTY,
|
|
analyzer = Analyzer.IK_MAX_WORD, searchAnalyzer = Analyzer.IK_MAX_WORD)
|
|
analyzer = Analyzer.IK_MAX_WORD, searchAnalyzer = Analyzer.IK_MAX_WORD)
|
|
- @HighLight( preTag = "<font color=\"red\" >", postTag = "</font>")
|
|
|
|
|
|
+ @HighLight(preTag = "<font color=\"red\" >", postTag = "</font>")
|
|
private String faultPhenomenon;
|
|
private String faultPhenomenon;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -116,14 +115,37 @@ public class FaultCase extends BaseEntity {
|
|
private String troubleshootingMethodPath;
|
|
private String troubleshootingMethodPath;
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 浏览次数
|
|
* 浏览次数
|
|
*/
|
|
*/
|
|
@ExcelProperty(value = "浏览次数")
|
|
@ExcelProperty(value = "浏览次数")
|
|
@IndexField(fieldType = FieldType.LONG, strategy = FieldStrategy.NOT_EMPTY)
|
|
@IndexField(fieldType = FieldType.LONG, strategy = FieldStrategy.NOT_EMPTY)
|
|
private Long viewCount;
|
|
private Long viewCount;
|
|
|
|
+ /**
|
|
|
|
+ * 创建者
|
|
|
|
+ */
|
|
|
|
+ @IndexField(fieldType = FieldType.TEXT)
|
|
|
|
+ private String createBy;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 创建时间
|
|
|
|
+ */
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ @IndexField(fieldType = FieldType.DATE, dateFormat = "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis")
|
|
|
|
+ private Date createTime;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 更新者
|
|
|
|
+ */
|
|
|
|
+ @IndexField(fieldType = FieldType.TEXT)
|
|
|
|
+ private String updateBy;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 更新时间
|
|
|
|
+ */
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ @IndexField(fieldType = FieldType.DATE, dateFormat = "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis")
|
|
|
|
+ private Date updateTime;
|
|
private String orderBy;
|
|
private String orderBy;
|
|
|
|
|
|
|
|
|