|
@@ -519,9 +519,9 @@ public class GoodsServiceImpl extends BaseServiceImpl<Integer, Goods> implement
|
|
|
|
|
|
goods.setSellCount(new AtomicInteger(goods.getSellCount()).incrementAndGet());
|
|
|
|
|
|
- goodsDao.update(goods);
|
|
|
+// goodsDao.update(goods);
|
|
|
if(Objects.nonNull(goodsProcurement)){
|
|
|
- goodsProcurementDao.update(goodsProcurement);
|
|
|
+// goodsProcurementDao.update(goodsProcurement);
|
|
|
}else{
|
|
|
goodsProcurement = new GoodsProcurement(goods.getId());
|
|
|
}
|
|
@@ -634,8 +634,8 @@ public class GoodsServiceImpl extends BaseServiceImpl<Integer, Goods> implement
|
|
|
}
|
|
|
goods.setSellCount(new AtomicInteger(goods.getSellCount()).addAndGet(-sellOrder.getNum()));
|
|
|
|
|
|
- goodsDao.update(goods);
|
|
|
- goodsProcurementDao.update(goodsProcurement);
|
|
|
+// goodsDao.update(goods);
|
|
|
+// goodsProcurementDao.update(goodsProcurement);
|
|
|
}
|
|
|
}
|
|
|
|