|
@@ -167,33 +167,34 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
|
Integer pageSize,
|
|
|
Integer apiId,
|
|
|
String con) {
|
|
|
- if (con != null) {
|
|
|
- if (!con.equals("undefined")) {
|
|
|
- String index="get_purchase_batch";//设置要查询的索引名称
|
|
|
- return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));//获取查询结果
|
|
|
- }
|
|
|
- }
|
|
|
- if (mapValue == null) {
|
|
|
- mapValue = new HashMap<>();
|
|
|
- }
|
|
|
- List<Map<String, Object>> truckRequirementList = null;
|
|
|
- if (mapValue.size() == 0) {
|
|
|
- //将查询结果存入索引中
|
|
|
- truckRequirementList = amstruckInwardRequirementService.getPurchaseIdByBatch(mapValue);
|
|
|
- Map<String, Object> map1 = new HashMap<>();
|
|
|
- //添加索引
|
|
|
- map1.put("index","get_purchase_batch");
|
|
|
- //添加id
|
|
|
- map1.put("indexId","purchaseOrderId");
|
|
|
- truckRequirementList.add(map1);
|
|
|
- //新建索引
|
|
|
- esFeign.insertIndex(truckRequirementList);
|
|
|
- //删除
|
|
|
- truckRequirementList.remove(truckRequirementList.size()-1);
|
|
|
- }
|
|
|
- if (truckRequirementList == null) {
|
|
|
- truckRequirementList = amstruckInwardRequirementService.getPurchaseIdByBatch(mapValue);
|
|
|
- }
|
|
|
+// if (con != null) {
|
|
|
+// if (!con.equals("undefined")) {
|
|
|
+// String index="get_purchase_batch";//设置要查询的索引名称
|
|
|
+// return success(esFeign.getConResult(mapValue,index,apiId,pageNum,pageSize,con));//获取查询结果
|
|
|
+// }
|
|
|
+// }
|
|
|
+// if (mapValue == null) {
|
|
|
+// mapValue = new HashMap<>();
|
|
|
+// }
|
|
|
+// List<Map<String, Object>> truckRequirementList = null;
|
|
|
+// if (mapValue.size() == 0) {
|
|
|
+// //将查询结果存入索引中
|
|
|
+// truckRequirementList = amstruckInwardRequirementService.getPurchaseIdByBatch(mapValue);
|
|
|
+// Map<String, Object> map1 = new HashMap<>();
|
|
|
+// //添加索引
|
|
|
+// map1.put("index","get_purchase_batch");
|
|
|
+// //添加id
|
|
|
+// map1.put("indexId","purchaseOrderId");
|
|
|
+// truckRequirementList.add(map1);
|
|
|
+// //新建索引
|
|
|
+// esFeign.insertIndex(truckRequirementList);
|
|
|
+// //删除
|
|
|
+// truckRequirementList.remove(truckRequirementList.size()-1);
|
|
|
+// }
|
|
|
+// if (truckRequirementList == null) {
|
|
|
+// truckRequirementList = amstruckInwardRequirementService.getPurchaseIdByBatch(mapValue);
|
|
|
+// }
|
|
|
+ List<Map<String,Object>> truckRequirementList = amstruckInwardRequirementService.getPurchaseIdByBatch(mapValue);
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
//分页查询数据
|
|
|
List<Map<String, Object>> columnList = amstruckInwardRequirementService.getPurchaseIdByBatch(mapValue);
|