|
|
|
@ -170,6 +170,11 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
JSONObject item = new JSONObject();
|
|
|
|
|
item.put("date", DateFormatUtils.format(report.getDate("valid_date"), "yyyy/MM/dd"));
|
|
|
|
|
JSONObject result = JSON.parseObject(report.getString("result"));
|
|
|
|
|
int warningLevel = result.getBooleanValue("valid") ? 0 : 1;
|
|
|
|
|
if (!result.getJSONArray("not_exists").isEmpty()) {
|
|
|
|
|
warningLevel = 2;
|
|
|
|
|
}
|
|
|
|
|
item.put("warning_level", warningLevel);
|
|
|
|
|
item.put("success", result.getBooleanValue("valid"));
|
|
|
|
|
topReports.add(item);
|
|
|
|
|
}
|
|
|
|
|