|
@@ -55,34 +55,10 @@ public class WmsReboundResultController extends BaseRESTfulController {
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
String con) {
|
|
String con) {
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- String index = "get_wms_reboundResult";
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String,Object>>reboundResultList = null;
|
|
|
|
- if(mapValue.size() == 0){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- reboundResultList = wmsInboundResultService.getReboundResult(mapValue);
|
|
|
|
- Map<String, Object> inboundResultMap = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- inboundResultMap.put("index","get_wms_reboundResult");
|
|
|
|
- //添加ID
|
|
|
|
- inboundResultMap.put("indexId","reboundResultId");
|
|
|
|
- reboundResultList.add(inboundResultMap);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(reboundResultList);
|
|
|
|
- //删除
|
|
|
|
- reboundResultList.remove(reboundResultList.size() -1);
|
|
|
|
- }
|
|
|
|
- if(reboundResultList == null) {
|
|
|
|
- reboundResultList = wmsInboundResultService.getReboundResult(mapValue);
|
|
|
|
- }
|
|
|
|
/*分页*/
|
|
/*分页*/
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
List<Map<String,Object>> columnList = wmsInboundResultService.getReboundResult(mapValue);
|
|
List<Map<String,Object>> columnList = wmsInboundResultService.getReboundResult(mapValue);
|
|
- PageListAdd pageList = columnDataUtil.tableColumnData(apiId,reboundResultList,columnList);
|
|
|
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId,null,columnList);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
|
|
|