1. singleResult返回多条数据报错


Deployment d = repositoryService.createDeploymentQuery().deploymentTenantId("1").singleResult();

singleResult如果返回2条数据,则会报错!

org.activiti.engine.ActivitiException: Query return 2 results instead of max 1