|
@@ -63,13 +63,21 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
Integer apiId,
|
|
Integer apiId,
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
- Integer resultType) {
|
|
|
|
-
|
|
|
|
|
|
+ Integer resultType,
|
|
|
|
+ String con) {
|
|
|
|
+ if (con != null) {
|
|
|
|
+ if (!"undefined".equals(con)) {
|
|
|
|
+ //设置要查询的索引名称
|
|
|
|
+ String index = "get_tmstrain_wagon_unload";
|
|
|
|
+ //获取查询结果
|
|
|
|
+ return success(esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//初始化过滤
|
|
//初始化过滤
|
|
List<Map<String, Object>> wagonUnloadList = null;
|
|
List<Map<String, Object>> wagonUnloadList = null;
|
|
|
|
+ mapValue.put("resultType", resultType);
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue.put("resultType", resultType);
|
|
|
|
|
|
+ if (mapValue.size() == 0) {
|
|
//将查询结果存入索引中
|
|
//将查询结果存入索引中
|
|
wagonUnloadList = tmstrainWagonUnloadResultService.getTmstrainWagonUnLoad(mapValue);
|
|
wagonUnloadList = tmstrainWagonUnloadResultService.getTmstrainWagonUnLoad(mapValue);
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -85,7 +93,6 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
wagonUnloadList.remove(wagonUnloadList.size() - 1);
|
|
wagonUnloadList.remove(wagonUnloadList.size() - 1);
|
|
}
|
|
}
|
|
if (wagonUnloadList == null) {
|
|
if (wagonUnloadList == null) {
|
|
- mapValue.put("resultType", resultType);
|
|
|
|
wagonUnloadList = tmstrainWagonUnloadResultService.getTmstrainWagonUnLoad(mapValue);
|
|
wagonUnloadList = tmstrainWagonUnloadResultService.getTmstrainWagonUnLoad(mapValue);
|
|
}
|
|
}
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
@@ -94,24 +101,6 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("/getTmstrainWagonUnLoad/{apiId}")
|
|
|
|
- public RESTfulResult getTmstrainWagonUnLoadByCon(@PathVariable("apiId") Integer apiId,
|
|
|
|
- @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- Integer resultType,
|
|
|
|
- String con) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- mapValue.put("resultType", resultType);
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index = "get_tmstrain_wagon_unload";
|
|
|
|
- //获取查询结果
|
|
|
|
- PageListAdd list = esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con);
|
|
|
|
- return success(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 通过主键删除车皮卸车作业实绩
|
|
* 通过主键删除车皮卸车作业实绩
|
|
*
|
|
*
|
|
@@ -169,7 +158,16 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
public RESTfulResult getTmstrainresult(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
public RESTfulResult getTmstrainresult(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
- Integer pageSize) {
|
|
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ String con) {
|
|
|
|
+ if (con != null) {
|
|
|
|
+ if (!"undefined".equals(con)) {
|
|
|
|
+ //设置要查询的索引名称
|
|
|
|
+ String index = "get_tmstrain_result";
|
|
|
|
+ //获取查询结果
|
|
|
|
+ return success(esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//初始化过滤
|
|
//初始化过滤
|
|
List<Map<String, Object>> tmstrainList = null;
|
|
List<Map<String, Object>> tmstrainList = null;
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
@@ -197,22 +195,6 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("/getTmstrainresult/{apiId}")
|
|
|
|
- public RESTfulResult getTmstrainresultByCon(@PathVariable("apiId") Integer apiId,
|
|
|
|
- @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- String con) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index = "get_tmstrain_result";
|
|
|
|
- //获取查询结果
|
|
|
|
- PageListAdd list = esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con);
|
|
|
|
- return success(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 获取卸车地点名称
|
|
* 获取卸车地点名称
|
|
*
|
|
*
|
|
@@ -267,11 +249,20 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
public RESTfulResult selectWagonUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
public RESTfulResult selectWagonUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
- Integer pageSize) {
|
|
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ String con) {
|
|
|
|
+ if (con != null) {
|
|
|
|
+ if (!"undefined".equals(con)) {
|
|
|
|
+ //设置要查询的索引名称
|
|
|
|
+ String index = "wagon_unload_result";
|
|
|
|
+ //获取查询结果
|
|
|
|
+ return success(esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//初始化过滤
|
|
//初始化过滤
|
|
List<Map<String, Object>> wagonUnLoadResult = null;
|
|
List<Map<String, Object>> wagonUnLoadResult = null;
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
- if (mapValue.size()==0) {
|
|
|
|
|
|
+ if (mapValue.size() == 0) {
|
|
//将查询结果存入索引中
|
|
//将查询结果存入索引中
|
|
wagonUnLoadResult = tmstrainWagonUnloadResultService.selectWagonUnLoadResult(mapValue);
|
|
wagonUnLoadResult = tmstrainWagonUnloadResultService.selectWagonUnLoadResult(mapValue);
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -294,22 +285,6 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("/selectWagonUnLoadResultForConverted/{apiId}")
|
|
|
|
- public RESTfulResult selectWagonUnLoadResultForConvertedByCon(@PathVariable("apiId") Integer apiId,
|
|
|
|
- @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- String con) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index = "wagon_unload_result";
|
|
|
|
- //获取查询结果
|
|
|
|
- PageListAdd list = esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con);
|
|
|
|
- return success(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
//*********内转物流查询火车卸车实绩************************************
|
|
//*********内转物流查询火车卸车实绩************************************
|
|
@ApiOperation(value = "查询火车卸车信息")
|
|
@ApiOperation(value = "查询火车卸车信息")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -319,11 +294,20 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
public RESTfulResult selectTrainUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
public RESTfulResult selectTrainUnLoadResultForConverted(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
- Integer pageSize) {
|
|
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ String con) {
|
|
|
|
+ if (con != null) {
|
|
|
|
+ if (!"undefined".equals(con)) {
|
|
|
|
+ //设置要查询的索引名称
|
|
|
|
+ String index = "wagon_unload_result";
|
|
|
|
+ //获取查询结果
|
|
|
|
+ return success(esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//初始化过滤
|
|
//初始化过滤
|
|
List<Map<String, Object>> trainUnLoadResult = null;
|
|
List<Map<String, Object>> trainUnLoadResult = null;
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
- if (mapValue == null) {
|
|
|
|
|
|
+ if (mapValue.size() == 0) {
|
|
//将查询结果存入索引中
|
|
//将查询结果存入索引中
|
|
trainUnLoadResult = tmstrainWagonUnloadResultService.getTmstrainResult(null);
|
|
trainUnLoadResult = tmstrainWagonUnloadResultService.getTmstrainResult(null);
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -347,21 +331,5 @@ public class TmstrainWagonUnloadResultController extends BaseRESTfulController {
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("/selectTrainUnLoadResultForConverted/{apiId}")
|
|
|
|
- public RESTfulResult selectTrainUnLoadResultForConvertedByCon(@PathVariable("apiId") Integer apiId,
|
|
|
|
- @RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
- Integer pageNum,
|
|
|
|
- Integer pageSize,
|
|
|
|
- String con) {
|
|
|
|
- if (mapValue == null) {
|
|
|
|
- mapValue = new HashMap<>();
|
|
|
|
- }
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index = "unload_result_converted";
|
|
|
|
- //获取查询结果
|
|
|
|
- PageListAdd list = esFeign.getConResult(mapValue, index, apiId, pageNum, pageSize, con);
|
|
|
|
- return success(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
}
|
|
}
|