|
@@ -287,15 +287,7 @@ public class K3StockLogic {
|
|
|
}
|
|
|
|
|
|
public void addCategorys(StockPosition stockPosition) {
|
|
|
- stockCorrespondPositionService.lambdaUpdate().eq(StockCorrespondPosition::getCorrespondId,stockPosition.getId()).remove();
|
|
|
- List<StockCorrespondPosition> stockCorrespondPositions = new ArrayList<>();
|
|
|
- for (String stockId : stockPosition.getStockIds()) {
|
|
|
- StockCorrespondPosition stockCorrespondPosition = new StockCorrespondPosition();
|
|
|
- stockCorrespondPosition.setStockId(stockId);
|
|
|
- stockCorrespondPosition.setCorrespondId(stockPosition.getId());
|
|
|
- stockCorrespondPositions.add(stockCorrespondPosition);
|
|
|
- }
|
|
|
- stockCorrespondPositionService.saveBatch(stockCorrespondPositions);
|
|
|
+
|
|
|
|
|
|
stockCorrespondCategoryService.lambdaUpdate().eq(StockCorrespondCategory::getCorrespondId,stockPosition.getId()).remove();
|
|
|
|