|
@@ -146,7 +146,7 @@ public class TmsshipUnloadShipResultController extends BaseRESTfulController {
|
|
|
if(con != null){
|
|
|
if(!"undefined".equals(con)){
|
|
|
//设置要查询的索引名称
|
|
|
- String index="get_unLoad_ship_list";
|
|
|
+ String index="get_unload_ship_list";
|
|
|
//获取查询结果
|
|
|
return success(esFeign.getConResult(mapVal,index,apiId,pageNum,pageSize,con));
|
|
|
}
|
|
@@ -154,14 +154,14 @@ public class TmsshipUnloadShipResultController extends BaseRESTfulController {
|
|
|
//初始化过滤
|
|
|
List<Map<String, Object>> detailListTotal = null;
|
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
|
- if (mapVal == null) {
|
|
|
+ if (mapVal.size() == 0) {
|
|
|
//将查询结果存入索引中
|
|
|
detailListTotal = tmsshipUnloadShipResultService.selectUnloadShipList(null);
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
//添加索引
|
|
|
- map.put("index", "get_unLoad_ship_list");
|
|
|
+ map.put("index", "get_unload_ship_list");
|
|
|
//添加id
|
|
|
- map.put("indexId", "resultId");
|
|
|
+ map.put("indexId", "unloadResultId");
|
|
|
detailListTotal.add(map);
|
|
|
//新建索引
|
|
|
String s = JSON.toJSONString(detailListTotal);
|