From e0783aac0a652fd17d5cf968eb0097a7d61c0e65 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 16 May 2022 16:47:48 +0800 Subject: [PATCH] ... --- .../io/renren/common/listener/InitiatorDataEntryListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/common/listener/InitiatorDataEntryListener.java b/renren-admin/src/main/java/io/renren/common/listener/InitiatorDataEntryListener.java index c83e5f59..1afa2cf9 100644 --- a/renren-admin/src/main/java/io/renren/common/listener/InitiatorDataEntryListener.java +++ b/renren-admin/src/main/java/io/renren/common/listener/InitiatorDataEntryListener.java @@ -44,6 +44,8 @@ public class InitiatorDataEntryListener implements TaskListener { logger.error("录入表单:" + kv.toString()); if (kv.containsKey("creator")) { // 表单存在创建者 taskService.setAssignee(delegateTask.getId(), kv.get("creator").toString()); + } else if (kv.containsKey("userId")) { + taskService.setAssignee(delegateTask.getId(), kv.get("userId").toString()); } GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(Date.class, (JsonDeserializer) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong()));