|
@@ -1,6 +1,7 @@
|
|
|
package com.fjhx.flow.service.flow.impl;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -166,4 +167,20 @@ public class FlowDefinitionServiceImpl extends ServiceImpl<FlowDefinitionMapper,
|
|
|
updateById(flowDefinition);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<FlowDefinition> getVersionList(FlowDefinition flowDefinition) {
|
|
|
+ String flowKey = flowDefinition.getFlowKey();
|
|
|
+
|
|
|
+ if (StrUtil.isBlank(flowKey)) {
|
|
|
+ throw new ServiceException("流程key不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ String tenantId = flowDefinition.getTenantId();
|
|
|
+ if (StrUtil.isBlank(tenantId)) {
|
|
|
+ throw new ServiceException("租户id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ return list(q -> q.eq(FlowDefinition::getFlowKey, flowKey).eq(FlowDefinition::getTenantId, tenantId));
|
|
|
+ }
|
|
|
+
|
|
|
}
|