| | |
| | | package org.jeecg.modules.flowable.apithird.business.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | }); |
| | | return flowMyBusinessDtoIPage; |
| | | } |
| | | |
| | | @Override |
| | | public FlowMyBusiness getFlowMyBusiness(String instanceId) { |
| | | List<FlowMyBusiness> businessList = super.list( |
| | | new QueryWrapper<FlowMyBusiness>().eq("process_instance_id", instanceId)); |
| | | return businessList.isEmpty() ? null : businessList.get(0); |
| | | } |
| | | |
| | | @Override |
| | | public FlowMyBusiness selectByDataId(String dataId) { |
| | | List<FlowMyBusiness> businessList = super.list( |
| | | new QueryWrapper<FlowMyBusiness>().eq("data_id", dataId)); |
| | | return businessList.isEmpty() ? null : businessList.get(0); |
| | | } |
| | | } |