From bb07147aaa96d1ef4c99e358dbbe7dad160dc62a Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 19 十二月 2019 15:43:23 +0800 Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div --- fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java index 7492bb3..e4f3f88 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java @@ -49,7 +49,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void insertList(List<Label> records,AdminUser admin) throws LabelException{ if (records != null && records.size() > 0) { for (Label label : records) { @@ -96,7 +96,7 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void updateList(List<Label> records) throws LabelException{ if (records != null && records.size() > 0) { for (Label label : records) { @@ -125,13 +125,13 @@ @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public int deleteBatchById(long[] ids) throws LabelException{ return labelMapper.deleteBatchByPrimaryKey(ids); } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void deleteBatchByPrimaryKey(List<Long> ids) throws LabelException { for (Long id : ids) { Label label = labelMapper.selectByPrimaryKey(id); -- Gitblit v1.8.0