‘linchangsheng’ 7 månader sedan
förälder
incheckning
dd0b9a8c88
1 ändrade filer med 1 tillägg och 9 borttagningar
  1. 1 9
      src/main/java/com/zfire/mall/manager/logic/k3/K3StockLogic.java

+ 1 - 9
src/main/java/com/zfire/mall/manager/logic/k3/K3StockLogic.java

@@ -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();