|
|
|
@ -51,7 +51,6 @@ public class TaskLegacy extends BaseHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean postJson(UmbrellaUser umbrellaUser, Map<String, Object> params, HttpExchange ex) throws IOException { |
|
|
|
private boolean postJson(UmbrellaUser umbrellaUser, Map<String, Object> params, HttpExchange ex) throws IOException { |
|
|
|
LOG.log(System.Logger.Level.DEBUG,params); |
|
|
|
|
|
|
|
if (params.get("ids") instanceof Map<?,?> taskIdMap){ |
|
|
|
if (params.get("ids") instanceof Map<?,?> taskIdMap){ |
|
|
|
var taskIds = taskIdMap.values().stream().map(Object::toString).map(Long::parseLong).toList(); |
|
|
|
var taskIds = taskIdMap.values().stream().map(Object::toString).map(Long::parseLong).toList(); |
|
|
|
return sendContent(ex,mapValues(taskService().load(taskIds))); |
|
|
|
return sendContent(ex,mapValues(taskService().load(taskIds))); |
|
|
|
|