Commit 9bce3ff0 authored by 332784038@qq.com's avatar 332784038@qq.com Committed by wux

批量订单费用申请业务添加事务管理

parent 422b5b91
...@@ -32,6 +32,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; ...@@ -32,6 +32,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import cn.iocoder.yudao.framework.mybatis.core.vo.PageVO; import cn.iocoder.yudao.framework.mybatis.core.vo.PageVO;
import cn.iocoder.yudao.framework.mybatis.core.service.AbstractService; import cn.iocoder.yudao.framework.mybatis.core.service.AbstractService;
...@@ -74,6 +75,7 @@ public class BatchOrderFeeApplyServiceImpl extends AbstractService<BatchOrderFee ...@@ -74,6 +75,7 @@ public class BatchOrderFeeApplyServiceImpl extends AbstractService<BatchOrderFee
private OrderService orderService; private OrderService orderService;
@Override @Override
@Transactional(rollbackFor = Exception.class)
public Long createBatchOrderFeeApply(BatchOrderFeeApplyCreateReqVO createReqVO) { public Long createBatchOrderFeeApply(BatchOrderFeeApplyCreateReqVO createReqVO) {
if (Objects.isNull(createReqVO.getBatchApplyDetailsInfoVO()) || CollectionUtil.isEmpty(createReqVO.getBatchApplyDetailsInfoVO().getOrderFeeDetailsVOList())) { if (Objects.isNull(createReqVO.getBatchApplyDetailsInfoVO()) || CollectionUtil.isEmpty(createReqVO.getBatchApplyDetailsInfoVO().getOrderFeeDetailsVOList())) {
throw exception(BATCH_ORDER_FEE_APPLY_INFO_NOT_EXISTS); throw exception(BATCH_ORDER_FEE_APPLY_INFO_NOT_EXISTS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment