Răsfoiți Sursa

Merge branch 'fix/流程起草未找到启用版本流程的问题' into 'wrdp'

[流程平台]修复流程起草未找到启用版本流程的问题,同时合并到设计院

See merge request o2oa/o2oa!2806
o2null 5 ani în urmă
părinte
comite
f88a652cd7

+ 2 - 2
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/factory/element/ProcessFactory.java

@@ -50,7 +50,7 @@ public class ProcessFactory extends ElementFactory {
 			return null;
 		}
 		CacheCategory cacheCategory = new CacheCategory(Process.class);
-		CacheKey cacheKey = new CacheKey(application, edition);
+		CacheKey cacheKey = new CacheKey(application, edition, "enabled");
 		Process o = null;
 		Optional<?> optional = CacheManager.get(cacheCategory, cacheKey);
 		if (optional.isPresent()) {
@@ -226,4 +226,4 @@ public class ProcessFactory extends ElementFactory {
 		cq.select(root.get(Process_.id)).where(p);
 		return em.createQuery(cq).getResultList();
 	}
-}
+}