From b7ab5bb0771b4c221c47a61f04aa2920509e4c4c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 16 七月 2020 18:27:10 +0800 Subject: [PATCH] dubbo修复 --- fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java index 20a7572..122d639 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/lable/LabelGoodsServiceImpl.java @@ -6,18 +6,18 @@ import java.util.List; import javax.annotation.Resource; -import javax.transaction.Transactional; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import com.yeshi.fanli.dao.mybatis.lable.LabelGoodsMapper; import com.yeshi.fanli.dao.mybatis.lable.QualityFactoryMapper; 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.entity.taobao.TaoBaoGoodsBrief; -import com.yeshi.fanli.exception.LabelClassException; -import com.yeshi.fanli.exception.LabelGoodsException; +import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; +import com.yeshi.fanli.exception.goods.quality.LabelClassException; +import com.yeshi.fanli.exception.goods.quality.LabelGoodsException; import com.yeshi.fanli.service.inter.goods.TaoBaoGoodsBriefService; import com.yeshi.fanli.service.inter.lable.LabelGoodsService; import com.yeshi.fanli.service.inter.lable.LabelService; @@ -53,14 +53,14 @@ } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public int deleteBatchById(long[] ids) throws LabelGoodsException{ return labelGoodsMapper.deleteBatchByPrimaryKey(ids); } @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void deleteByGoodsId(List<String> ids) throws LabelGoodsException { if (ids != null && ids.size() > 0) { @@ -97,7 +97,6 @@ @Override public List<LabelGoods> queryByGoodsId(int start, int count, Long goodsId) throws LabelClassException { - // TODO Auto-generated method stub return labelGoodsMapper.queryByGoodsId(start, count, goodsId); } @@ -127,7 +126,7 @@ @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void addBatchByLabId(TaoBaoGoodsBrief taoBaoGoodsBrief, List<String> labIdList, AdminUser admin) throws Exception { List<LabelGoods> addList = new ArrayList<LabelGoods>(); @@ -156,7 +155,7 @@ @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void batchGoodsAddLables(List<Long> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception { /* 鍟嗗搧id 涓虹┖ 涓嶅鐞� */ @@ -218,7 +217,7 @@ @Override - @Transactional + @Transactional(rollbackFor=Exception.class) public void singleGoodsAddLables(Long goodsId, List<Long> labIdList, AdminUser admin) throws Exception { /* 鍟嗗搧id 涓虹┖ 涓嶅鐞� */ -- Gitblit v1.8.0