|
@@ -60,6 +60,8 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
private ESFeign esFeign;
|
|
private ESFeign esFeign;
|
|
|
|
|
|
private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
+ private SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 编写人:hukui
|
|
* 编写人:hukui
|
|
@@ -83,34 +85,13 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
- String con)
|
|
|
|
|
|
+ String con,
|
|
|
|
+ String startTime,
|
|
|
|
+ String endTime)
|
|
{
|
|
{
|
|
|
|
|
|
- if (con != null) {
|
|
|
|
- if (!"undefined".equals(con)) {
|
|
|
|
- String index = "get_wms_outResult";//设置要查询的索引名称
|
|
|
|
- return success(esFeign.getConResult(mapval, index, apiId, pageNum, pageSize, con));//获取查询结果
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- List<Map<String, Object>> libaryOutBoundList = null;
|
|
|
|
- if (mapval.size() == 0) {
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- libaryOutBoundList = wmspOutboundResultService.selectResultNumber(mapval);
|
|
|
|
- Map<String, Object> map1 = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map1.put("index", "get_wms_outresult");
|
|
|
|
- //添加id
|
|
|
|
- map1.put("indexId", "outBoundResultId");
|
|
|
|
- libaryOutBoundList.add(map1);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(libaryOutBoundList);
|
|
|
|
- //删除
|
|
|
|
- libaryOutBoundList.remove(libaryOutBoundList.size() - 1);
|
|
|
|
- }
|
|
|
|
- if (libaryOutBoundList == null) {
|
|
|
|
- libaryOutBoundList = wmspOutboundResultService.selectResultNumber(mapval);
|
|
|
|
- }
|
|
|
|
|
|
+ DataChange.queryDataByDateTime(startTime,endTime,mapval,simpleDateFormat);
|
|
|
|
+ List<Map<String, Object>> libaryOutBoundList = wmspOutboundResultService.selectResultNumber(mapval);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
List<Map<String, Object>> columnList =wmspOutboundResultService.selectResultNumber(mapval);
|
|
List<Map<String, Object>> columnList =wmspOutboundResultService.selectResultNumber(mapval);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, libaryOutBoundList, columnList);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, libaryOutBoundList, columnList);
|