Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
aroad_aqsc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许言琪
aroad_aqsc
Commits
e87b8102
提交
e87b8102
authored
5月 11, 2019
作者:
xuyanqi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
搜索返回结构更改
上级
43c2d416
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
10 行删除
+26
-10
EsUtil_fanshe.java
...lephant/framework/galaxy/aroad/bigdata/EsUtil_fanshe.java
+26
-10
没有找到文件。
src/main/java/com/elephant/framework/galaxy/aroad/bigdata/EsUtil_fanshe.java
浏览文件 @
e87b8102
...
@@ -15,6 +15,7 @@ import java.lang.reflect.Constructor;
...
@@ -15,6 +15,7 @@ import java.lang.reflect.Constructor;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.net.InetAddress
;
import
java.net.InetAddress
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -77,7 +78,7 @@ public class EsUtil_fanshe {
...
@@ -77,7 +78,7 @@ public class EsUtil_fanshe {
* @Author: dongjili
* @Author: dongjili
* @Date:
* @Date:
*/
*/
public
static
ArrayList
<
Basebridgealldata
>
queryBridge
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
public
static
Map
<
String
,
Object
>
queryBridge
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
// 搜索数据
// 搜索数据
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
...
@@ -231,7 +232,10 @@ public class EsUtil_fanshe {
...
@@ -231,7 +232,10 @@ public class EsUtil_fanshe {
}
}
basebridgealldataList
.
add
(
basebridgealldata
);
basebridgealldataList
.
add
(
basebridgealldata
);
}
}
return
basebridgealldataList
;
return
new
HashMap
<
String
,
Object
>(){{
put
(
"total"
,
hits
.
getTotalHits
());
put
(
"list"
,
basebridgealldataList
);
}};
}
}
/**
/**
* @Description: termquery()桥梁代码词条查询
* @Description: termquery()桥梁代码词条查询
...
@@ -431,7 +435,7 @@ public class EsUtil_fanshe {
...
@@ -431,7 +435,7 @@ public class EsUtil_fanshe {
* @Author: dongjili
* @Author: dongjili
* @Date:
* @Date:
*/
*/
public
static
ArrayList
<
Basehighwayalldata
>
queryHighWay
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
public
static
HashMap
<
String
,
Object
>
queryHighWay
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
//搜索数据
//搜索数据
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
...
@@ -562,7 +566,10 @@ public class EsUtil_fanshe {
...
@@ -562,7 +566,10 @@ public class EsUtil_fanshe {
}
}
basehighwayalldataList
.
add
(
basehighwayalldata
);
basehighwayalldataList
.
add
(
basehighwayalldata
);
}
}
return
basehighwayalldataList
;
return
new
HashMap
<
String
,
Object
>(){{
put
(
"total"
,
hits
.
getTotalHits
());
put
(
"list"
,
basehighwayalldataList
);
}};
}
}
/**
/**
* @Description: termquery()路线编号词条查询
* @Description: termquery()路线编号词条查询
...
@@ -741,7 +748,7 @@ public class EsUtil_fanshe {
...
@@ -741,7 +748,7 @@ public class EsUtil_fanshe {
* @Author: dongjili
* @Author: dongjili
* @Date: 2019/4/28 0028
* @Date: 2019/4/28 0028
*/
*/
public
static
List
<
Basetunnelalldata
>
queryTunnel
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
public
static
HashMap
<
String
,
Object
>
queryTunnel
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
//搜索数据
//搜索数据
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
...
@@ -825,7 +832,10 @@ public class EsUtil_fanshe {
...
@@ -825,7 +832,10 @@ public class EsUtil_fanshe {
}
}
basetunnelalldataList
.
add
(
basetunnelalldata
);
basetunnelalldataList
.
add
(
basetunnelalldata
);
}
}
return
basetunnelalldataList
;
return
new
HashMap
<
String
,
Object
>(){{
put
(
"total"
,
hits
.
getTotalHits
());
put
(
"list"
,
basetunnelalldataList
);
}};
}
}
/**
/**
* @Description: termquery()隧道代码词条匹配查询
* @Description: termquery()隧道代码词条匹配查询
...
@@ -955,7 +965,7 @@ public class EsUtil_fanshe {
...
@@ -955,7 +965,7 @@ public class EsUtil_fanshe {
* @Author: dongjili
* @Author: dongjili
* @Date: 2019/4/28 0028
* @Date: 2019/4/28 0028
*/
*/
public
static
ArrayList
<
BaseRoadToll_String
>
queryBaseRoadTollString
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
public
static
HashMap
<
String
,
Object
>
queryBaseRoadTollString
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
//搜索数据
//搜索数据
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
...
@@ -1016,7 +1026,10 @@ public class EsUtil_fanshe {
...
@@ -1016,7 +1026,10 @@ public class EsUtil_fanshe {
baseRoadTollStrings
.
add
(
baseRoadTollString
);
baseRoadTollStrings
.
add
(
baseRoadTollString
);
}
}
return
baseRoadTollStrings
;
return
new
HashMap
<
String
,
Object
>(){{
put
(
"total"
,
hits
.
getTotalHits
());
put
(
"list"
,
baseRoadTollStrings
);
}};
}
}
/**
/**
...
@@ -1055,7 +1068,7 @@ public class EsUtil_fanshe {
...
@@ -1055,7 +1068,7 @@ public class EsUtil_fanshe {
* @Author: dongjili
* @Author: dongjili
* @Date: 2019/5/8 0008
* @Date: 2019/5/8 0008
*/
*/
public
static
ArrayList
<
BaseHighWayService
>
queryBaseHighWayService
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
public
static
HashMap
<
String
,
Object
>
queryBaseHighWayService
(
String
keyword
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
//搜索数据
//搜索数据
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
...
@@ -1120,7 +1133,10 @@ public class EsUtil_fanshe {
...
@@ -1120,7 +1133,10 @@ public class EsUtil_fanshe {
baseHighWayServices
.
add
(
baseHighWayService
);
baseHighWayServices
.
add
(
baseHighWayService
);
}
}
return
baseHighWayServices
;
return
new
HashMap
<
String
,
Object
>(){{
put
(
"total"
,
hits
.
getTotalHits
());
put
(
"list"
,
baseHighWayServices
);
}};
}
}
/**
/**
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论