|
|
@@ -1928,7 +1928,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
if (CollectionUtils.isEmpty(productIds) || StringUtils.isEmpty(batchid)) {
|
|
|
return ;
|
|
|
}
|
|
|
- final List<Goods> goodses = goodsService.findByBatchId(batchid);
|
|
|
+// final List<Goods> goodses = goodsService.findByBatchId(batchid);
|
|
|
final Runnable afterPublishToGoodsRunnable = new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
@@ -1953,14 +1953,14 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
goodsService.updateSpecByProducts(products, goodses);
|
|
|
}
|
|
|
|
|
|
- List<GoodsHistory> list = new ArrayList<>();
|
|
|
- for (Goods goodse : goodses) {
|
|
|
- GoodsHistory goodsHistory = goodsHistoryService.converTGoodsHist(goodse, GoodsHistory.OperateType.Publish.getPhrase(), false);
|
|
|
- list.add(goodsHistory);
|
|
|
- }
|
|
|
- if (CollectionUtils.isNotEmpty(list)) {
|
|
|
- commonDao.save(list, GoodsHistory.class);
|
|
|
- }
|
|
|
+// List<GoodsHistory> list = new ArrayList<>();
|
|
|
+// for (Goods goodse : goodses) {
|
|
|
+// GoodsHistory goodsHistory = goodsHistoryService.converTGoodsHist(goodse, GoodsHistory.OperateType.Publish.getPhrase(), false);
|
|
|
+// list.add(goodsHistory);
|
|
|
+// }
|
|
|
+// if (CollectionUtils.isNotEmpty(list)) {
|
|
|
+// commonDao.save(list, GoodsHistory.class);
|
|
|
+// }
|
|
|
}
|
|
|
};
|
|
|
try {
|