|
@@ -13,8 +13,11 @@ import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.apache.xmlbeans.impl.xb.xsdschema.All;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -43,14 +46,20 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
@Autowired
|
|
@Autowired
|
|
ESFeign esFeign;
|
|
ESFeign esFeign;
|
|
|
|
|
|
|
|
+ private final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
+
|
|
@ApiOperation(value="触发电子围栏-->新增排队实绩")
|
|
@ApiOperation(value="触发电子围栏-->新增排队实绩")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
|
|
@ApiImplicitParam(name = "mapValue", value = "", required = false, dataType = "Map"),
|
|
})
|
|
})
|
|
@PostMapping("/addQueueResult")
|
|
@PostMapping("/addQueueResult")
|
|
- public RESTfulResult addQueueResult(@RequestBody(required = false) Map<String, Object> map){
|
|
|
|
|
|
+ public String addQueueResult(@RequestBody(required = false) Map<String, Object> map){
|
|
int i = qmsQueueResultService.addQueueResult(map);
|
|
int i = qmsQueueResultService.addQueueResult(map);
|
|
- return success(i);
|
|
|
|
|
|
+ if(i > 0){
|
|
|
|
+ return "success";
|
|
|
|
+ }else {
|
|
|
|
+ return "field";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value="查询排队申请")
|
|
@ApiOperation(value="查询排队申请")
|
|
@@ -67,36 +76,13 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
-
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_queue_apply";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String, Object>> allQueueApply = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == 0){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- allQueueApply = qmsQueueResultService.getQueueApply(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_queue_apply");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","queueId");
|
|
|
|
- allQueueApply.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(allQueueApply);
|
|
|
|
- //删除
|
|
|
|
- allQueueApply.remove(allQueueApply.size()-1);
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- if(allQueueApply == null)
|
|
|
|
- allQueueApply = qmsQueueResultService.getQueueApply(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
|
+ List<Map<String, Object>> allQueueApply = qmsQueueResultService.getQueueApply(mapValue);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> listMonitor = qmsQueueResultService.getQueueApply(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> listMonitor = new ArrayList<>(allQueueApply);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allQueueApply,listMonitor);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, allQueueApply,listMonitor);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
@@ -173,36 +159,14 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Integer queueType,
|
|
Integer queueType,
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
- mapValue.put("queueType", queueType);
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_order_receive";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> AllOrderReceive = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == 1){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllOrderReceive = qmsQueueResultService.orderReceive(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_order_receive");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","receiveId");
|
|
|
|
- AllOrderReceive.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllOrderReceive);
|
|
|
|
- //删除
|
|
|
|
- AllOrderReceive.remove(AllOrderReceive.size()-1);
|
|
|
|
- }
|
|
|
|
- if(AllOrderReceive == null)
|
|
|
|
- AllOrderReceive = qmsQueueResultService.orderReceive(mapValue);
|
|
|
|
- PageHelper.startPage(pageNum,pageSize);
|
|
|
|
|
|
+ mapValue.put("queueType", queueType);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> executionOrder = qmsQueueResultService.orderReceive(mapValue);
|
|
|
|
|
|
+ PageHelper.startPage(pageNum,pageSize);
|
|
|
|
+ List<Map<String, Object>> AllOrderReceive = qmsQueueResultService.orderReceive(mapValue);
|
|
|
|
+ List<Map<String, Object>> executionOrder = new ArrayList<>(AllOrderReceive);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllOrderReceive,executionOrder);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllOrderReceive,executionOrder);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
|
|
|
|
@@ -225,42 +189,16 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Integer gridId,
|
|
Integer gridId,
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
- int count = 0;
|
|
|
|
if(gridId != null){
|
|
if(gridId != null){
|
|
mapValue.put("gridId", gridId);
|
|
mapValue.put("gridId", gridId);
|
|
- count++;
|
|
|
|
}
|
|
}
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_queue_list";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String, Object>> AllQueueList = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == count){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllQueueList = qmsQueueResultService.getQueueListByQueueUp(null);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_queue_list");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","queueListId");
|
|
|
|
- AllQueueList.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- String s = JSON.toJSONString(AllQueueList);;
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllQueueList);
|
|
|
|
- //删除
|
|
|
|
- AllQueueList.remove(AllQueueList.size()-1);
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- if(AllQueueList == null)
|
|
|
|
- AllQueueList = qmsQueueResultService.getQueueListByQueueUp(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> queueListByQueueUp = qmsQueueResultService.getQueueListByQueueUp(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> AllQueueList = qmsQueueResultService.getQueueListByQueueUp(mapValue);
|
|
|
|
+ List<Map<String, Object>> queueListByQueueUp = new ArrayList<>(AllQueueList);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueList,queueListByQueueUp);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueList,queueListByQueueUp);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
@@ -279,40 +217,16 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer gatepostId,
|
|
Integer gatepostId,
|
|
String con
|
|
String con
|
|
- ){ int count = 0;
|
|
|
|
|
|
+ ){
|
|
if(gatepostId != null){
|
|
if(gatepostId != null){
|
|
mapValue.put("gatepostId", gatepostId);
|
|
mapValue.put("gatepostId", gatepostId);
|
|
- count++;
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_queue_mes";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> AllQueueMes = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == count){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllQueueMes = qmsQueueResultService.getQueueMes(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_queue_mes");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","queueMesId");
|
|
|
|
- AllQueueMes.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllQueueMes);
|
|
|
|
- //删除
|
|
|
|
- AllQueueMes.remove(AllQueueMes.size()-1);
|
|
|
|
- }
|
|
|
|
- if(AllQueueMes == null)
|
|
|
|
- AllQueueMes = qmsQueueResultService.getQueueMes(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
|
|
+ List<Map<String, Object>> AllQueueMes = qmsQueueResultService.getQueueMes(mapValue);
|
|
List<Map<String, Object>> queueMes = qmsQueueResultService.getQueueMes(mapValue);
|
|
List<Map<String, Object>> queueMes = qmsQueueResultService.getQueueMes(mapValue);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueMes,queueMes);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueMes,queueMes);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
@@ -340,35 +254,13 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_change_queue";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String, Object>> AllChangeQueue = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == 0){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllChangeQueue = qmsQueueResultService.getChangeQueueMes(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_change_queue");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","changeQueueId");
|
|
|
|
- AllChangeQueue.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllChangeQueue);
|
|
|
|
- //删除
|
|
|
|
- AllChangeQueue.remove(AllChangeQueue.size()-1);
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- if(AllChangeQueue == null)
|
|
|
|
- AllChangeQueue = qmsQueueResultService.getChangeQueueMes(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> changeQueueMes1 = qmsQueueResultService.getChangeQueueMes(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> AllChangeQueue = qmsQueueResultService.getChangeQueueMes(mapValue);
|
|
|
|
+ List<Map<String, Object>> changeQueueMes1 = new ArrayList<>(AllChangeQueue);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllChangeQueue,changeQueueMes1);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllChangeQueue,changeQueueMes1);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
@@ -387,41 +279,17 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer gatepostId,
|
|
Integer gatepostId,
|
|
String con
|
|
String con
|
|
- ){ int count=0;
|
|
|
|
- if(gatepostId != null){
|
|
|
|
|
|
+ ){
|
|
|
|
+ if(gatepostId != null){
|
|
mapValue.put("gatepostId", gatepostId);
|
|
mapValue.put("gatepostId", gatepostId);
|
|
- count++;
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_queue_cancel";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> AllQueueCancel = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == count){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllQueueCancel = qmsQueueResultService.getQueueCancel(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_queue_cancel");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","queueCancelId");
|
|
|
|
- AllQueueCancel.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllQueueCancel);
|
|
|
|
- //删除
|
|
|
|
- AllQueueCancel.remove(AllQueueCancel.size()-1);
|
|
|
|
- }
|
|
|
|
- if(AllQueueCancel == null)
|
|
|
|
- AllQueueCancel = qmsQueueResultService.getQueueCancel(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> queueCancel1 = qmsQueueResultService.getQueueCancel(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> AllQueueCancel = qmsQueueResultService.getQueueCancel(mapValue);
|
|
|
|
+ List<Map<String, Object>> queueCancel1 = new ArrayList<>(AllQueueCancel);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueCancel,queueCancel1);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueCancel,queueCancel1);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
@@ -461,35 +329,13 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_queue_insert";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- List<Map<String, Object>> AllQueueInsert = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == 0){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllQueueInsert = qmsQueueResultService.getQueueInsert(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_queue_insert");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","queueInsertId");
|
|
|
|
- AllQueueInsert.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllQueueInsert);
|
|
|
|
- //删除
|
|
|
|
- AllQueueInsert.remove(AllQueueInsert.size()-1);
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- if(AllQueueInsert == null)
|
|
|
|
- AllQueueInsert = qmsQueueResultService.getQueueInsert(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> queueInsert = qmsQueueResultService.getQueueInsert(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> AllQueueInsert = qmsQueueResultService.getQueueInsert(mapValue);
|
|
|
|
+ List<Map<String, Object>> queueInsert = new ArrayList<>(AllQueueInsert);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueInsert,queueInsert);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueInsert,queueInsert);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
|
|
|
|
@@ -509,36 +355,13 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
-
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_queue_endresult";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> AllQueueEndInsert = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == 0){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllQueueEndInsert = qmsQueueResultService.getQueueEndResult(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_queue_endresult");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","queueEndResultId");
|
|
|
|
- AllQueueEndInsert.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllQueueEndInsert);
|
|
|
|
- //删除
|
|
|
|
- AllQueueEndInsert.remove(AllQueueEndInsert.size()-1);
|
|
|
|
- }
|
|
|
|
- if(AllQueueEndInsert == null)
|
|
|
|
- AllQueueEndInsert = qmsQueueResultService.getQueueEndResult(mapValue);
|
|
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> queueEndInsert = qmsQueueResultService.getQueueEndResult(mapValue);
|
|
|
|
|
|
+ List<Map<String, Object>> AllQueueEndInsert = qmsQueueResultService.getQueueEndResult(mapValue);
|
|
|
|
+ List<Map<String, Object>> queueEndInsert = new ArrayList<>(AllQueueEndInsert);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueEndInsert,queueEndInsert);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllQueueEndInsert,queueEndInsert);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
}
|
|
}
|
|
@@ -559,37 +382,13 @@ public class QmsQueueResultController extends BaseRESTfulController {
|
|
String con
|
|
String con
|
|
){
|
|
){
|
|
mapValue.put("gridType", gridType);
|
|
mapValue.put("gridType", gridType);
|
|
-
|
|
|
|
-
|
|
|
|
- if(con != null){
|
|
|
|
- if(!"undefined".equals(con)){
|
|
|
|
- //设置要查询的索引名称
|
|
|
|
- String index="get_capacity_monitor";
|
|
|
|
- //获取查询结果
|
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));
|
|
|
|
- }
|
|
|
|
|
|
+ if(con != null && !"".equals(con) && !"null".equals(con)){
|
|
|
|
+ mapValue.put("index", con);
|
|
}
|
|
}
|
|
- List<Map<String, Object>> AllCapacityMonitor = null;
|
|
|
|
- //如果有条件查询则跳过初始化,和创建索引
|
|
|
|
- if(mapValue.size() == 1){
|
|
|
|
- //将查询结果存入索引中
|
|
|
|
- AllCapacityMonitor = qmsQueueResultService.capacityMonitor(mapValue);
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map.put("index","get_capacity_monitor");
|
|
|
|
- //添加id
|
|
|
|
- map.put("indexId","capacityMonitorId");
|
|
|
|
- AllCapacityMonitor.add(map);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(AllCapacityMonitor);
|
|
|
|
- //删除
|
|
|
|
- AllCapacityMonitor.remove(AllCapacityMonitor.size()-1);
|
|
|
|
- }
|
|
|
|
- if(AllCapacityMonitor == null)
|
|
|
|
- AllCapacityMonitor = qmsQueueResultService.capacityMonitor(mapValue);
|
|
|
|
- PageHelper.startPage(pageNum,pageSize);
|
|
|
|
//分页数据
|
|
//分页数据
|
|
- List<Map<String, Object>> capacityMonitor = qmsQueueResultService.capacityMonitor(mapValue);
|
|
|
|
|
|
+ PageHelper.startPage(pageNum,pageSize);
|
|
|
|
+ List<Map<String, Object>> AllCapacityMonitor = qmsQueueResultService.capacityMonitor(mapValue);
|
|
|
|
+ List<Map<String, Object>> capacityMonitor = new ArrayList<>(AllCapacityMonitor);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllCapacityMonitor,capacityMonitor);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, AllCapacityMonitor,capacityMonitor);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
|
|
|