| | |
| | | import org.jeecg.modules.flowable.util.TimeUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Isolation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Transactional(isolation = Isolation.READ_COMMITTED) // 降低隔离级别 |
| | | @Transactional // 降低隔离级别 |
| | | public FlowMyBusiness getByDataId(String dataId) { |
| | | LambdaQueryWrapper<FlowMyBusiness> flowMyBusinessLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | flowMyBusinessLambdaQueryWrapper.eq(FlowMyBusiness::getDataId,dataId) |
| | | ; |
| | | //如果保存数据前未调用必调的FlowCommonService.initActBusiness方法,就会有问题 |
| | | FlowMyBusiness business = this.getOne(flowMyBusinessLambdaQueryWrapper); |
| | | FlowMyBusiness business = flowMyBusinessMapper.selectByDataId(dataId); |
| | | return business; |
| | | } |
| | | |