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()));