npe
This commit is contained in:
parent
83d9b7b4db
commit
2d18cbbf9a
|
@ -9,7 +9,6 @@ import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.http.HttpEntity;
|
import org.springframework.http.HttpEntity;
|
||||||
import org.springframework.http.HttpHeaders;
|
import org.springframework.http.HttpHeaders;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
|
|
|
@ -515,6 +515,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
HashMap<Object, Object> areaMap = new HashMap<>();
|
HashMap<Object, Object> areaMap = new HashMap<>();
|
||||||
areaMap.put("type", "区级");
|
areaMap.put("type", "区级");
|
||||||
Integer integer = resourceDao.selectTypeCountByDept("区级", jsonObject.getString("type"));
|
Integer integer = resourceDao.selectTypeCountByDept("区级", jsonObject.getString("type"));
|
||||||
|
if (null == integer) {
|
||||||
|
integer = 0;
|
||||||
|
}
|
||||||
areaMap.put("total", integer);
|
areaMap.put("total", integer);
|
||||||
ArrayList<Map> areaListTemp = new ArrayList<>();
|
ArrayList<Map> areaListTemp = new ArrayList<>();
|
||||||
areaTypeList.orElse(new HashMap<>()).forEach((key, value) -> {
|
areaTypeList.orElse(new HashMap<>()).forEach((key, value) -> {
|
||||||
|
|
Loading…
Reference in New Issue