fix: add json parser overload for task snapshot metrics
This commit is contained in:
parent
e9e05613f5
commit
6a65a4a68a
@ -427,6 +427,13 @@ public class TaskProgressSnapshotService {
|
|||||||
return objectMapper.readValue(json, type);
|
return objectMapper.readValue(json, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private <T> T read(String json, Class<T> type) throws Exception {
|
||||||
|
if (json == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return objectMapper.readValue(json, type);
|
||||||
|
}
|
||||||
|
|
||||||
private TaskProgressOverviewVO applyFilters(TaskProgressOverviewVO overview, String dateRange, String month, Long deptId) {
|
private TaskProgressOverviewVO applyFilters(TaskProgressOverviewVO overview, String dateRange, String month, Long deptId) {
|
||||||
if (overview == null) {
|
if (overview == null) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user