feat(validate report): validation view show if there is error

master
yixian 5 years ago
parent 7b6f71cf84
commit 0626d466e5

@ -164,7 +164,7 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
List<JSONObject> topReports = new ArrayList<>();
for (JSONObject report : reports) {
JSONObject item = new JSONObject();
item.put("date", DateFormatUtils.format(item.getDate("valid_date"), "yyyy/MM/dd"));
item.put("date", DateFormatUtils.format(report.getDate("valid_date"), "yyyy/MM/dd"));
JSONObject result = JSON.parseObject(report.getString("result"));
item.put("success", result.getBooleanValue("valid"));
topReports.add(item);

Loading…
Cancel
Save