...
This commit is contained in:
parent
396a7b5c6b
commit
e0783aac0a
|
@ -44,6 +44,8 @@ public class InitiatorDataEntryListener implements TaskListener {
|
||||||
logger.error("录入表单:" + kv.toString());
|
logger.error("录入表单:" + kv.toString());
|
||||||
if (kv.containsKey("creator")) { // 表单存在创建者
|
if (kv.containsKey("creator")) { // 表单存在创建者
|
||||||
taskService.setAssignee(delegateTask.getId(), kv.get("creator").toString());
|
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();
|
GsonBuilder builder = new GsonBuilder();
|
||||||
builder.registerTypeAdapter(Date.class, (JsonDeserializer<Date>) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong()));
|
builder.registerTypeAdapter(Date.class, (JsonDeserializer<Date>) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong()));
|
||||||
|
|
Loading…
Reference in New Issue