招标计划新增添加事务
This commit is contained in:
		| @ -30,6 +30,7 @@ import org.dromara.tender.domain.bo.BusBiddingPlanBo; | ||||
| import org.dromara.tender.domain.vo.BusBiddingPlanVo; | ||||
| import org.dromara.tender.mapper.BusBiddingPlanMapper; | ||||
| import org.dromara.tender.service.IBusBiddingPlanService; | ||||
| import org.springframework.transaction.annotation.Transactional; | ||||
| import org.springframework.web.multipart.MultipartFile; | ||||
|  | ||||
| import java.math.BigDecimal; | ||||
| @ -130,6 +131,7 @@ public class BusBiddingPlanServiceImpl extends ServiceImpl<BusBiddingPlanMapper, | ||||
|      * @return 是否新增成功 | ||||
|      */ | ||||
|     @Override | ||||
|     @Transactional(rollbackFor = Exception.class) | ||||
|     public Boolean insertByBo(BusBiddingPlanBo bo) { | ||||
|         BusBiddingPlan add = MapstructUtils.convert(bo, BusBiddingPlan.class); | ||||
|         validEntityBeforeSave(add); | ||||
| @ -177,6 +179,7 @@ public class BusBiddingPlanServiceImpl extends ServiceImpl<BusBiddingPlanMapper, | ||||
|      * @return 是否修改成功 | ||||
|      */ | ||||
|     @Override | ||||
|     @Transactional(rollbackFor = Exception.class) | ||||
|     public Boolean updateByBo(BusBiddingPlanBo bo) { | ||||
|         if (bo.getBidStatus() == 1){ | ||||
|             throw new ServiceException("数据已锁定,不允许继续上传附件"); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user