异常处理。

This commit is contained in:
wangzhijiang
2023-06-08 13:49:44 +08:00
parent 629f916db3
commit 11f8c1755d
2 changed files with 15 additions and 6 deletions
@@ -719,8 +719,11 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
mapSource.put("state_dictText", state_dictText);
Long create_time = (Long) mapSource.get("create_time");
mapSource.put("create_time_str",DateUtils.formatTime(create_time));
String create_time_str = "";
if(ObjectUtils.isNotEmpty(mapSource.get("create_time"))){
create_time_str = DateUtils.formatTime((Long) mapSource.get("create_time"));
}
mapSource.put("create_time_str",create_time_str);
mapList.add(mapSource);
}
@@ -1464,8 +1467,11 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
mapSource.put("content","");
}*/
}
Long create_time = (Long) mapSource.get("create_time");
mapSource.put("create_time_str",DateUtils.formatTime(create_time));
String create_time_str = "";
if(ObjectUtils.isNotEmpty(mapSource.get("create_time"))){
create_time_str = DateUtils.formatTime((Long) mapSource.get("create_time"));
}
mapSource.put("create_time_str",create_time_str);
mapList.add(mapSource);
}
@@ -212,8 +212,11 @@ public class LawsMonthlyReportSearchServiceImpl implements ILawsMonthlyReportSea
mapSource.put(key,fieldConyent);
}
}
Long create_time = (Long) mapSource.get("create_time");
mapSource.put("create_time_str", DateUtils.formatTime(create_time));
String create_time_str = "";
if(ObjectUtils.isNotEmpty(mapSource.get("create_time"))){
create_time_str = DateUtils.formatTime((Long) mapSource.get("create_time"));
}
mapSource.put("create_time_str",create_time_str);
mapList.add(mapSource);
}