mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【修复】BPM:多租户使用同一个流程标识 key 时查询报错
This commit is contained in:
parent
e216849921
commit
7786233ae8
@ -262,7 +262,9 @@ public class BpmModelServiceImpl implements BpmModelService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Model getModelByKey(String key) {
|
private Model getModelByKey(String key) {
|
||||||
return repositoryService.createModelQuery().modelKey(key).singleResult();
|
return repositoryService.createModelQuery()
|
||||||
|
.modelTenantId(FlowableUtils.getTenantId())
|
||||||
|
.modelKey(key).singleResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -79,7 +79,9 @@ public class BpmProcessDefinitionServiceImpl implements BpmProcessDefinitionServ
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ProcessDefinition getActiveProcessDefinition(String key) {
|
public ProcessDefinition getActiveProcessDefinition(String key) {
|
||||||
return repositoryService.createProcessDefinitionQuery().processDefinitionKey(key).active().singleResult();
|
return repositoryService.createProcessDefinitionQuery()
|
||||||
|
.processDefinitionTenantId(FlowableUtils.getTenantId())
|
||||||
|
.processDefinitionKey(key).active().singleResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -172,6 +174,7 @@ public class BpmProcessDefinitionServiceImpl implements BpmProcessDefinitionServ
|
|||||||
@Override
|
@Override
|
||||||
public PageResult<ProcessDefinition> getProcessDefinitionPage(BpmProcessDefinitionPageReqVO pageVO) {
|
public PageResult<ProcessDefinition> getProcessDefinitionPage(BpmProcessDefinitionPageReqVO pageVO) {
|
||||||
ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();
|
ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();
|
||||||
|
query.processDefinitionTenantId(FlowableUtils.getTenantId());
|
||||||
if (StrUtil.isNotBlank(pageVO.getKey())) {
|
if (StrUtil.isNotBlank(pageVO.getKey())) {
|
||||||
query.processDefinitionKey(pageVO.getKey());
|
query.processDefinitionKey(pageVO.getKey());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user