Browse Source

修改获取路段列表接口

tags/v1.0.0^2
chengwang 2 years ago
parent
commit
4e36e3e6cf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/SectionServiceImpl.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/SectionServiceImpl.java View File

@@ -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());
}

Loading…
Cancel
Save