Commit 15f71192 authored by 麻笑宇's avatar 麻笑宇

修改orgCode为空报错

parent 88c09561
......@@ -644,7 +644,10 @@ public class ZLDPStatisticsServiceImpl {
DPFilterParamDto filterParamDto = new DPFilterParamDto();
filterParamDto.setBeginDate(startDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
filterParamDto.setEndDate(endDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
Long rescuedPersonNum = alertStatisticsMapper.countRescuedPersonNum(orgCode, filterParamDto);
Long rescuedPersonNum = 0L;
if(null != orgCode) {
rescuedPersonNum = alertStatisticsMapper.countRescuedPersonNum(orgCode, filterParamDto);
}
jsonObject3.put("key", "jjbkck");
jsonObject3.put("value", ValidationUtil.isEmpty(rescuedPersonNum) ? 0 : rescuedPersonNum);
jsonObject3.put("name", "解救被困乘客");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment