package org.jeecg.modules.flowable.apithird.business.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.jeecg.modules.flowable.apithird.business.dto.FlowMyBusinessDto; import org.jeecg.modules.flowable.apithird.business.entity.FlowMyBusiness; import org.jeecg.modules.flowable.apithird.business.mapper.FlowMyBusinessMapper; import org.jeecg.modules.flowable.apithird.business.service.IFlowMyBusinessService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @Description: 流程业务扩展表 * @Author: jeecg-boot * @Date: 2021-11-25 * @Version: V1.0 */ @Service public class FlowMyBusinessServiceImpl extends ServiceImpl implements IFlowMyBusinessService { @Autowired private FlowMyBusinessMapper flowMyBusinessMapper; public FlowMyBusiness getByDataId(String dataId) { LambdaQueryWrapper flowMyBusinessLambdaQueryWrapper = new LambdaQueryWrapper<>(); flowMyBusinessLambdaQueryWrapper.eq(FlowMyBusiness::getDataId,dataId) ; //如果保存数据前未调用必调的FlowCommonService.initActBusiness方法,就会有问题 FlowMyBusiness business = this.getOne(flowMyBusinessLambdaQueryWrapper); return business; } public FlowMyBusiness getByProcessInstanceId(String processInstanceId) { LambdaQueryWrapper flowMyBusinessLambdaQueryWrapper = new LambdaQueryWrapper<>(); flowMyBusinessLambdaQueryWrapper.eq(FlowMyBusiness::getProcessInstanceId,processInstanceId) ; //如果保存数据前未调用必调的FlowCommonService.initActBusiness方法,就会有问题 FlowMyBusiness business = this.getOne(flowMyBusinessLambdaQueryWrapper); return business; } /** * 流程总台账 * @param flowMyBusinessDto * @return */ public IPage findPageList(Page page, FlowMyBusinessDto flowMyBusinessDto){ return flowMyBusinessMapper.getPageList(page,flowMyBusinessDto); } }