@@ -59,7 +59,7 @@ public class SectionServiceImpl extends BaseServiceImpl<SectionMapper, Section> | |||
RoadInformation roadInformation = roadInformationMapper.selectOne(Wrappers.<RoadInformation>lambdaQuery() | |||
.eq(RoadInformation::getId, record.getRoadId()) | |||
.eq(RoadInformation::getMark, 1)); | |||
if(null == roadInformation){ | |||
if(StringUtils.isNotNull(roadInformation)){ | |||
if(StringUtils.isNotEmpty(roadInformation.getCode())){ | |||
record.setCode(roadInformation.getCode()); | |||
} |