|
@@ -264,33 +264,8 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
|
|
Integer pageSize,
|
|
Integer pageSize,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
String con) {
|
|
String con) {
|
|
- if (con != null) {
|
|
|
|
- if (!con.equals("undefined")) {
|
|
|
|
- String index="get_ware_house";//设置要查询的索引名称
|
|
|
|
- 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.getWareHouse(mapValue);
|
|
|
|
- Map<String, Object> map1 = new HashMap<>();
|
|
|
|
- //添加索引
|
|
|
|
- map1.put("index","get_ware_house");
|
|
|
|
- //添加id
|
|
|
|
- map1.put("indexId","wareHouseId");
|
|
|
|
- truckRequirementList.add(map1);
|
|
|
|
- //新建索引
|
|
|
|
- esFeign.insertIndex(truckRequirementList);
|
|
|
|
- //删除
|
|
|
|
- truckRequirementList.remove(truckRequirementList.size()-1);
|
|
|
|
- }
|
|
|
|
- if (truckRequirementList == null) {
|
|
|
|
- truckRequirementList = amstruckInwardRequirementService.getWareHouse(mapValue);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ List<Map<String, Object>> truckRequirementList = amstruckInwardRequirementService.getWareHouse(mapValue);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = amstruckInwardRequirementService.getWareHouse(mapValue);
|
|
List<Map<String, Object>> columnList = amstruckInwardRequirementService.getWareHouse(mapValue);
|