mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
未排单查询更改
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ public interface ESDocumentService {
|
||||
* @param tClass 返回的类型
|
||||
* @param map 修改内容的map
|
||||
*/
|
||||
<T> Result updateById(String idxName, String docId, Class<T> tClass, Map<String,Object> map) throws IOException;
|
||||
<T> Result updateById(String idxName, String docId, Class<T> tClass, Map<String,Object> map) throws IOException, ElasticsearchException;
|
||||
|
||||
/**
|
||||
* 根据文档id查找文档,返回类型是ObjectNode
|
||||
|
||||
+1
-1
@@ -196,7 +196,7 @@ public class ESDocumentServiceImpl implements ESDocumentService {
|
||||
* 把年龄改成35
|
||||
*/
|
||||
@Override
|
||||
public <T> Result updateById(String idxName, String docId, Class<T> tClass, Map<String, Object> map) throws IOException {
|
||||
public <T> Result updateById(String idxName, String docId, Class<T> tClass, Map<String, Object> map) throws IOException, ElasticsearchException {
|
||||
UpdateResponse<T> response = elasticsearchClient.update(e -> e.index(idxName).id(docId).doc(map), tClass);
|
||||
return response.result();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user