Commit 806196f3 authored by lisong's avatar lisong

修改bug

parent d365cf3f
......@@ -162,8 +162,8 @@ public class HouseholdPvDistrictServiceImpl extends BaseService<HouseholdPvDistr
BeanUtils.copyProperties(item, dto, "children");
Map<String, Object> detail = (Map<String, Object>) item.getObject();
if (!ObjectUtils.isEmpty(detail)) {
dto.setLevel(detail.getOrDefault(STATION_LEVEL, "").toString());
if (!ObjectUtils.isEmpty(detail.get(STATION_LEVEL)) && "station".equals(detail.get(STATION_LEVEL))){
dto.setLevel(detail.get(STATION_LEVEL).toString());
dto.setDisabled(false);
}else {
dto.setDisabled(true);
......
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