wangdy 7 лет назад
Родитель
Сommit
e1c3d06244

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/facade/impl/ProductStandardPutOnInfoFacadeImpl.java

@@ -164,7 +164,7 @@ public class ProductStandardPutOnInfoFacadeImpl implements ProductStandardPutOnI
 		}
 
         //保存库存的历史
-        GoodsHistory history = goodsHistoryService.converTGoodsHist(goods, GoodsHistory.OperateType.STANDARD_MODIFY.getPhrase());
+        GoodsHistory history = goodsHistoryService.converTGoodsHist(goods, GoodsHistory.OperateType.STANDARD_MODIFY.getPhrase(),false);
         goodsHistoryService.save(history);
 
 

+ 3 - 3
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ProductServiceImpl.java

@@ -778,7 +778,7 @@ public class ProductServiceImpl implements ProductService {
                 }else {
                     goods.setStatus(Status.AVAILABLE.value());
                 }
-                GoodsHistory goodsHistory = goodsHistoryService.converTGoodsHist(goods, GoodsHistory.OperateType.Modifying.getPhrase());
+                GoodsHistory goodsHistory = goodsHistoryService.converTGoodsHist(goods, GoodsHistory.OperateType.Modifying.getPhrase(),false);
                 goodsHistoryDao.save(goodsHistory);
                 goodsDao.save(goods);
 
@@ -1069,7 +1069,7 @@ public class ProductServiceImpl implements ProductService {
         for (Long id : idArray) {
             Goods goods = goodsDao.findOne(id);
             goodsHist = goodsHistoryService.converTGoodsHist(goods,
-                    GoodsHistory.OperateType.DELETE_FOR_REPEAT.getPhrase());
+                    GoodsHistory.OperateType.DELETE_FOR_REPEAT.getPhrase(),false);
             goodsHist.setMessage(goodsHist.getMessage() + "匹配后因为重复删除");
             goodsHistoryList.add(goodsHist);
             goodsDao.delete(id);
@@ -1135,7 +1135,7 @@ public class ProductServiceImpl implements ProductService {
             for (Goods goods : goodsList) {
                 updateGoodsInfo(goods, product);
                 GoodsHistory goodsHist = goodsHistoryService.converTGoodsHist(goods,
-                        GoodsHistory.OperateType.Modifying.getPhrase());
+                        GoodsHistory.OperateType.Modifying.getPhrase(),false);
                 //更新购物车信息
                 List<Cart> cartList = cartDao.findCartByBatch(goods.getBatchCode());
                 updateCartsInfo(goods, cartList);

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ProductStandardPutOnInfoServiceImpl.java

@@ -128,7 +128,7 @@ public class ProductStandardPutOnInfoServiceImpl implements ProductStandardPutOn
                         goodsPrices.get(goodsPrices.size() - 1).setEnd(goods.getReserve());
                         goods.setQtyPrice(FastjsonUtils.toJson(goodsPrices));
                     }
-                    GoodsHistory history = goodsHistoryService.converTGoodsHist(goods, GoodsHistory.OperateType.AddReserve.getPhrase());
+                    GoodsHistory history = goodsHistoryService.converTGoodsHist(goods, GoodsHistory.OperateType.AddReserve.getPhrase(),false);
                     listHist.add(history);
                     list.add(goods);
                     uuids.add(goods.getUuid());