|
@@ -207,34 +207,21 @@ public class WmsInboundResultController extends BaseRESTfulController {
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer warehouseId,
|
|
Integer warehouseId,
|
|
String con) {
|
|
String con) {
|
|
|
|
+ String startTime = null;
|
|
|
|
+ String endTime = null;
|
|
|
|
+ if(mapValue.get("startTime") != null && mapValue.get("endTime") != null) {
|
|
|
|
+ startTime = mapValue.get("startTime").toString();
|
|
|
|
+ endTime = mapValue.get("endTime").toString();
|
|
|
|
+ }
|
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
|
|
if (mapValue == null){
|
|
if (mapValue == null){
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
if(con != null){
|
|
if(con != null){
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- String index = "get_wms_reservedresult";
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
mapValue.put("warehouseId",warehouseId);
|
|
mapValue.put("warehouseId",warehouseId);
|
|
List<Map<String,Object>>inboundResultList = null;
|
|
List<Map<String,Object>>inboundResultList = null;
|
|
- if(mapValue.size() == 0){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- inboundResultList = wmsInboundResultServiceImpl.getWmsReservedResult(mapValue);
|
|
|
|
- Map<String, Object> inboundResultMap = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- inboundResultMap.put("index","get_wms_reservedresult");
|
|
|
|
- //添加ID
|
|
|
|
- inboundResultMap.put("indexId","reservedresultId");
|
|
|
|
- inboundResultList.add(inboundResultMap);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(inboundResultList);
|
|
|
|
- //删除
|
|
|
|
- inboundResultList.remove(inboundResultList.size() -1);
|
|
|
|
- }
|
|
|
|
- if(inboundResultList == null) {
|
|
|
|
- inboundResultList = wmsInboundResultServiceImpl.getWmsReservedResult(mapValue);
|
|
|
|
- }
|
|
|
|
/*分页*/
|
|
/*分页*/
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
List<Map<String,Object>> columnList = wmsInboundResultServiceImpl.getWmsReservedResult(mapValue);
|
|
List<Map<String,Object>> columnList = wmsInboundResultServiceImpl.getWmsReservedResult(mapValue);
|