|
|
@@ -2809,14 +2809,14 @@ public class ProductServiceImpl implements ProductService {
|
|
|
goodsService.setGoodsDefault(goods);
|
|
|
String type;
|
|
|
if (null != goods.getId()) {
|
|
|
- type = GoodsHistory.OperateType.Update.name();
|
|
|
+ type = GoodsHistory.OperateType.Update.getPhrase();
|
|
|
goodsHistory = goodsHistoryService.converTGoodsHist(goods, type, false);
|
|
|
} else {
|
|
|
- type = GoodsHistory.OperateType.PutOn.name();
|
|
|
+ type = GoodsHistory.OperateType.Publish.getPhrase();
|
|
|
goodsHistory = goodsHistoryService.converTGoodsHist(goods, type, false);
|
|
|
}
|
|
|
goodsHistory = goodsHistoryService.save(goodsHistory);
|
|
|
- LOGGER.log("库存操作", "单个物料上传更新库存操作", "操作方式 " + type, goodsHistory.getCode(), goodsHistory.getId());
|
|
|
+ LOGGER.log("库存操作", "单个物料上传更新库存操作", "操作方式-> " + type, goodsHistory.getCode(), goodsHistory.getId());
|
|
|
goods = goodsDao.save(goods);
|
|
|
LOGGER.log("上架商品", "新增上架商品", "通过卖家中心单个物料上传新增上架商品", goods.getCode(), goods.getId());
|
|
|
}
|