Commit bc94a0e8 authored by 332784038@qq.com's avatar 332784038@qq.com

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

parent c2163e60
......@@ -32,6 +32,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import cn.iocoder.yudao.framework.mybatis.core.vo.PageVO;
import cn.iocoder.yudao.framework.mybatis.core.service.AbstractService;
......@@ -74,6 +75,7 @@ public class BatchOrderFeeApplyServiceImpl extends AbstractService<BatchOrderFee
private OrderService orderService;
@Override
@Transactional(rollbackFor = Exception.class)
public Long createBatchOrderFeeApply(BatchOrderFeeApplyCreateReqVO createReqVO) {
if (Objects.isNull(createReqVO.getBatchApplyDetailsInfoVO()) || CollectionUtil.isEmpty(createReqVO.getBatchApplyDetailsInfoVO().getOrderFeeDetailsVOList())) {
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