|
|
@@ -224,7 +224,7 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map getAllStockInfo() {
|
|
|
+ public List getAllStockInfo() {
|
|
|
BaseContextHandler.setTenant("0000");
|
|
|
|
|
|
// 查询产线列表、遍历产线查询设备资源
|
|
|
@@ -266,8 +266,7 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- retStockInfo.put("data",returnList);
|
|
|
- return retStockInfo;
|
|
|
+ return returnList;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -298,24 +297,26 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
m.put("uniqueCode", p.getUniqueCode());
|
|
|
m.put("storgeId", p.getStorgeId());
|
|
|
m.put("category", p.getCategory());
|
|
|
- if ("5".equals(p.getCategory())) {//如果是托板。
|
|
|
- List<Map> childL = new ArrayList<>();
|
|
|
- //根据托盘ID,找到对应的点位
|
|
|
- Map queryMap = new HashMap();
|
|
|
- queryMap.put("plateId", p.getGoodsId() == null ? "" : p.getGoodsId().toString());
|
|
|
- List<ProductionresourcePosition> childList = productionresourcePositionMapper.getProductlineStockInfo(queryMap);
|
|
|
- for (ProductionresourcePosition c : childList) {
|
|
|
- Map childMap = new HashMap();
|
|
|
- childMap.put("pointId", c.getPointId());
|
|
|
- childMap.put("goodsName", c.getGoodsName());
|
|
|
- childMap.put("goodsId", c.getGoodsId());
|
|
|
- childMap.put("uniqueCode", c.getUniqueCode());
|
|
|
- childMap.put("storgeId", c.getStorgeId());
|
|
|
- childMap.put("category", c.getCategory());
|
|
|
- childL.add(childMap);
|
|
|
- }
|
|
|
- m.put("childList", childL);
|
|
|
- }
|
|
|
+// if ("5".equals(p.getCategory())) {//如果是托板。
|
|
|
+// List<Map> childL = new ArrayList<>();
|
|
|
+// //根据托盘ID,找到对应的点位
|
|
|
+// Map queryMap = new HashMap();
|
|
|
+// queryMap.put("plateId", p.getGoodsId() == null ? "" : p.getGoodsId().toString());
|
|
|
+// queryMap.put("resourceId", p.getResourceId());
|
|
|
+// queryMap.put("pointId", p.getPointId());
|
|
|
+// List<ProductionresourcePosition> childList = productionresourcePositionMapper.getProductlineStockInfo(queryMap);
|
|
|
+// for (ProductionresourcePosition c : childList) {
|
|
|
+// Map childMap = new HashMap();
|
|
|
+// childMap.put("pointId", c.getPointId());
|
|
|
+// childMap.put("goodsName", c.getGoodsName());
|
|
|
+// childMap.put("goodsId", c.getGoodsId());
|
|
|
+// childMap.put("uniqueCode", c.getUniqueCode());
|
|
|
+// childMap.put("storgeId", c.getStorgeId());
|
|
|
+// childMap.put("category", c.getCategory());
|
|
|
+// childL.add(childMap);
|
|
|
+// }
|
|
|
+// m.put("childList", childL);
|
|
|
+// }
|
|
|
l.add(m);
|
|
|
}
|
|
|
}
|
|
|
@@ -416,9 +417,7 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
List<Map> allReturnList = new ArrayList<>();
|
|
|
List<Map> returnStockList = processStockInfo(deviceUnit ,resourceId, pointId);
|
|
|
allReturnList.addAll(returnStockList);
|
|
|
- Map<String, Object> retStockInfo = new HashMap<String, Object>();
|
|
|
- retStockInfo.put("data",allReturnList);
|
|
|
- result.setData(retStockInfo);
|
|
|
+ result.setData(allReturnList);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -456,10 +455,8 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
List<Map> allReturnList = new ArrayList<>();
|
|
|
List<Map> returnStockList = processStockInfo(deviceUnit ,resourceId, pointId);
|
|
|
allReturnList.addAll(returnStockList);
|
|
|
- Map<String, Object> retStockInfo = new HashMap<String, Object>();
|
|
|
- retStockInfo.put("data",allReturnList);
|
|
|
|
|
|
- return R.success(retStockInfo);
|
|
|
+ return R.success(allReturnList);
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -475,9 +472,7 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
List<Map> allReturnList = new ArrayList<>();
|
|
|
List<Map> returnStockList = processStockInfo(deviceUnit ,resourceId, pointId);
|
|
|
allReturnList.addAll(returnStockList);
|
|
|
- Map<String, Object> retStockInfo = new HashMap<String, Object>();
|
|
|
- retStockInfo.put("data",allReturnList);
|
|
|
- result.setData(retStockInfo);
|
|
|
+ result.setData(allReturnList);
|
|
|
return result;
|
|
|
}
|
|
|
|