Commit bdf62f66 authored by 曹盼盼's avatar 曹盼盼

es数据同步dto

parent fb4cd124
package com.yeejoin.amos.boot.module.tzs.api.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
/**
* @Author cpp
* @Description
* @Date 2023/6/5
*/
@Data
@Accessors(chain = true)
@Document(indexName = "idx_biz_view_jg_all", type = "idx_biz_view_jg_all", shards = 1, replicas = 0)
public class ESEquipmentCategoryDto {
@Id
private String SEQUENCE_NBR;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String ORG_BRANCH_NAME;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String ORG_BRANCH_CODE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String USE_UNIT_NAME;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String USE_UNIT_CREDIT_CODE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String EQU_LIST_CODE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String EQU_LIST;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String EQU_CATEGORY;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String USE_ORG_CODE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String CODE96333;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String EQU_CODE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String SUPERVISORY_CODE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String USE_PLACE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String ADDRESS;
@Field(type = FieldType.Integer)
private Integer EQU_STATE;
@Field(type = FieldType.Text,searchAnalyzer = "ik_max_word", analyzer = "ik_max_word")
private String STATUS;
}
package com.yeejoin.amos.boot.module.tzs.biz.dao;
import com.yeejoin.amos.boot.module.tzs.api.dto.ESEquipmentCategoryDto;
import com.yeejoin.amos.boot.module.tzs.api.entity.EsElevator;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ESEquipmentCategory extends PagingAndSortingRepository<ESEquipmentCategoryDto, String> {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment