|
@@ -1558,26 +1558,26 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
|
|
|
R<String> result = R.success("");
|
|
|
|
|
|
- for(ProductionresourcePosition p:list){
|
|
|
- String stockGoodsId = p.getGoodsId()==null?"":p.getGoodsId().toString();
|
|
|
- if(!goodsId.equals(stockGoodsId))
|
|
|
- continue;
|
|
|
-
|
|
|
- if("1".equals(p.getCategory())||"2".equals(p.getCategory())){//托盘夹具
|
|
|
- BomProcedureTray tray = new BomProcedureTray();
|
|
|
- tray.setTrayId(p.getGoodsId());
|
|
|
- result = stockInfoService.procedureTrayStockOut(tray, p.getStorgeId());
|
|
|
- }
|
|
|
-
|
|
|
- if("4".equals(p.getCategory())){//原材料
|
|
|
- BomProcedureMeterial meterial = new BomProcedureMeterial();
|
|
|
- meterial.setMeterialId(p.getGoodsId());
|
|
|
- result = stockInfoService.meterialStockOut(meterial, p.getStorgeId(), "");
|
|
|
- }
|
|
|
- if (!result.getIsSuccess()) {
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+// for(ProductionresourcePosition p:list){
|
|
|
+// String stockGoodsId = p.getGoodsId()==null?"":p.getGoodsId().toString();
|
|
|
+// if(!goodsId.equals(stockGoodsId))
|
|
|
+// continue;
|
|
|
+//
|
|
|
+// if("1".equals(p.getCategory())||"2".equals(p.getCategory())){//托盘夹具
|
|
|
+// BomProcedureTray tray = new BomProcedureTray();
|
|
|
+// tray.setTrayId(p.getGoodsId());
|
|
|
+// result = stockInfoService.procedureTrayStockOut(tray, p.getStorgeId());
|
|
|
+// }
|
|
|
+//
|
|
|
+// if("4".equals(p.getCategory())){//原材料
|
|
|
+// BomProcedureMeterial meterial = new BomProcedureMeterial();
|
|
|
+// meterial.setMeterialId(p.getGoodsId());
|
|
|
+// result = stockInfoService.meterialStockOut(meterial, p.getStorgeId(), "");
|
|
|
+// }
|
|
|
+// if (!result.getIsSuccess()) {
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -1593,26 +1593,26 @@ public class TaskNodeServiceImpl extends SuperServiceImpl<TaskNodeMapper, TaskNo
|
|
|
|
|
|
R<String> result = R.success("");
|
|
|
|
|
|
- for(ProductionresourcePosition p:list){
|
|
|
- String stockGoodsId = p.getGoodsId()==null?"":p.getGoodsId().toString();
|
|
|
- if(!goodsId.equals(stockGoodsId))
|
|
|
- continue;
|
|
|
-
|
|
|
- if("1".equals(p.getCategory())||"2".equals(p.getCategory())){//托盘夹具
|
|
|
- BomProcedureTray tray = new BomProcedureTray();
|
|
|
- tray.setTrayId(p.getGoodsId());
|
|
|
- result = stockInfoService.procedureTrayStockIn(tray, list.get(0).getStorgeId(), "", "");
|
|
|
- }
|
|
|
-
|
|
|
- if("4".equals(p.getCategory())){//原材料
|
|
|
- BomProcedureMeterial meterial = new BomProcedureMeterial();
|
|
|
- meterial.setMeterialId(p.getGoodsId());
|
|
|
- result = stockInfoService.meterialStockIn(meterial, list.get(0).getStorgeId(), "","");
|
|
|
- }
|
|
|
- if (!result.getIsSuccess()) {
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+// for(ProductionresourcePosition p:list){
|
|
|
+// String stockGoodsId = p.getGoodsId()==null?"":p.getGoodsId().toString();
|
|
|
+// if(!goodsId.equals(stockGoodsId))
|
|
|
+// continue;
|
|
|
+//
|
|
|
+// if("1".equals(p.getCategory())||"2".equals(p.getCategory())){//托盘夹具
|
|
|
+// BomProcedureTray tray = new BomProcedureTray();
|
|
|
+// tray.setTrayId(p.getGoodsId());
|
|
|
+// result = stockInfoService.procedureTrayStockIn(tray, list.get(0).getStorgeId(), "", "");
|
|
|
+// }
|
|
|
+//
|
|
|
+// if("4".equals(p.getCategory())){//原材料
|
|
|
+// BomProcedureMeterial meterial = new BomProcedureMeterial();
|
|
|
+// meterial.setMeterialId(p.getGoodsId());
|
|
|
+// result = stockInfoService.meterialStockIn(meterial, list.get(0).getStorgeId(), "","");
|
|
|
+// }
|
|
|
+// if (!result.getIsSuccess()) {
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// }
|
|
|
return result;
|
|
|
}
|
|
|
}
|