feat[订单支付回调模块,排队模块]:订单查询素材列表,设备执行自动触发等

This commit is contained in:
2025-01-18 19:05:51 +08:00
parent 59d28e53f8
commit 9960a696b4
76 changed files with 1147 additions and 363 deletions
@@ -8,16 +8,16 @@ import com.central.common.utils.JsonUtil;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.util.EntityUtils;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.indices.CreateIndexRequest;
import org.elasticsearch.client.indices.CreateIndexResponse;
import org.elasticsearch.client.indices.GetIndexRequest;
import org.elasticsearch.client.indices.GetIndexResponse;
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.Response;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.indices.CreateIndexRequest;
import org.elasticsearch.client.indices.CreateIndexResponse;
import org.elasticsearch.client.indices.GetIndexRequest;
import org.elasticsearch.client.indices.GetIndexResponse;
import org.elasticsearch.cluster.metadata.AliasMetadata;
import org.elasticsearch.cluster.metadata.MappingMetadata;
import org.elasticsearch.common.settings.Settings;
@@ -25,7 +25,10 @@ import org.elasticsearch.common.xcontent.XContentType;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 索引
@@ -87,7 +90,7 @@ public class IndexServiceImpl implements IIndexService {
TypeReference<List<Map<String, String>>> typeRef = new TypeReference<List<Map<String, String>>>() {};
listOfIndicesFromEs = mapper.readValue(rawBody, typeRef);
}
return PageResult.<Map<String, String>>builder().data(listOfIndicesFromEs).code(0).build();
return PageResult.<Map<String, String>>builder().data(listOfIndicesFromEs).resp_code(0).build();
}
@Override