From 64a8f7a3be0a5584fe2164a2474b189c79cfab5c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 28 十二月 2019 18:15:39 +0800
Subject: [PATCH] 小程序接口初步建立

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelServiceImpl.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 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 5da3b12..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
@@ -23,7 +23,7 @@
 import com.yeshi.fanli.entity.bus.lable.Label;
 import com.yeshi.fanli.entity.bus.lable.LabelGoods;
 import com.yeshi.fanli.entity.common.AdminUser;
-import com.yeshi.fanli.exception.LabelException;
+import com.yeshi.fanli.exception.goods.quality.LabelException;
 import com.yeshi.fanli.service.inter.lable.LabelService;
 import com.yeshi.fanli.util.StringUtil;
 
@@ -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