From c84d8ecd97d111b01db9cfd807300d0491a95bc8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 08 一月 2019 16:38:34 +0800 Subject: [PATCH] Merge branch 'dev-hongbao' --- fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonGoodsServiceImpl.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonGoodsServiceImpl.java index b957f99..7d27b0e 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonGoodsServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonGoodsServiceImpl.java @@ -134,4 +134,21 @@ } } } + + @Override + @Transactional + public void addBatchCommonGoods(List<CommonGoods> listCommonGoods) { + + if (listCommonGoods == null || listCommonGoods.size() == 0) { + return; + } + + for (CommonGoods commonGoods: listCommonGoods) { + try { + addCommonGoods(commonGoods); + } catch (Exception e) { + e.printStackTrace(); + } + } + } } -- Gitblit v1.8.0