This commit is contained in:
wangliwen 2022-05-16 16:47:48 +08:00
parent 396a7b5c6b
commit e0783aac0a
1 changed files with 2 additions and 0 deletions

View File

@ -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<Date>) (json, typeOfT, context) -> new Date(json.getAsJsonPrimitive().getAsLong()));