From 744594ef1a2f530fc3e86ea9dc48b62247f79420 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 19 五月 2020 17:13:23 +0800
Subject: [PATCH] 饿了么绘图,添加口碑

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelClassServiceImpl.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelClassServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelClassServiceImpl.java
index ec9307b..087cb21 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelClassServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelClassServiceImpl.java
@@ -6,17 +6,17 @@
 import java.util.List;
 
 import javax.annotation.Resource;
-import javax.transaction.Transactional;
 
 import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
 import com.yeshi.fanli.dao.mybatis.lable.LabelClassMapper;
 import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
 import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
 import com.yeshi.fanli.entity.bus.lable.Label;
 import com.yeshi.fanli.entity.bus.lable.LabelClass;
-import com.yeshi.fanli.exception.LabelClassException;
+import com.yeshi.fanli.exception.goods.quality.LabelClassException;
 import com.yeshi.fanli.service.inter.lable.LabelClassService;
 import com.yeshi.fanli.service.inter.lable.LabelService;
 
@@ -120,7 +120,7 @@
 	
 	
 	@Override
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	public void addBatchClass(GoodsClass goodsClass,List<Long> labIdList) throws Exception {
 		
 		long recordId = goodsClass.getId();
@@ -194,7 +194,7 @@
 	
 	
 	@Override
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	public void addBatchSubClass(GoodsSubClass goodsSubClass,List<Long> labIdList) throws Exception {
 		
 		long recordId = goodsSubClass.getId();

--
Gitblit v1.8.0