Browse Source

修改部门信息时,对公路null最过滤

tags/v1.1.0^2
wanjing 1 year ago
parent
commit
bf51ea68af
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/query/QueryDeptInfoService.java

+ 4
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/query/QueryDeptInfoService.java View File

package com.tuoheng.admin.service.dept.query; package com.tuoheng.admin.service.dept.query;


import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.tuoheng.admin.conver.DeptConverMapper; import com.tuoheng.admin.conver.DeptConverMapper;
import com.tuoheng.admin.dto.RoadSectionDto; import com.tuoheng.admin.dto.RoadSectionDto;
sectionListTmp = new ArrayList<>(); sectionListTmp = new ArrayList<>();
sectionListTmp.add(section); sectionListTmp.add(section);
roadInformation = roadInformationMap.get(section.getRoadId()); roadInformation = roadInformationMap.get(section.getRoadId());
if (ObjectUtil.isNull(roadInformation)) {
continue;
}
roadSectionDto.setRoad(roadInformation); roadSectionDto.setRoad(roadInformation);
roadSectionDto.setSectionList(sectionListTmp); roadSectionDto.setSectionList(sectionListTmp);
roadSectionDtoList.add(roadSectionDto); roadSectionDtoList.add(roadSectionDto);

Loading…
Cancel
Save