标准详情,实施日期 s.getPutTime()空指针

This commit is contained in:
zhaokaiyao@91isoft.com
2021-09-08 21:07:29 +08:00
parent 7fab612a90
commit cf32ad9580
@@ -288,7 +288,10 @@ public class SarLawsAttrDetailedListServiceImpl extends ServiceImpl<SarLawsAttrD
}
private void dateTime(LinkedHashMap<String, List<String>> mapList, List<String> putTime, List<String> xcx, List<String> zcc, StandRegionalTimeDto s) {
putTime.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getPutTime()));
//临时
if (s.getPutTime()!=null){
putTime.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getPutTime()));
}
xcx.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getXcxssrq()));
zcc.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getZccssrq()));
mapList.put("实施日期("+s.getCountry()+")",putTime);