|
|
@@ -206,6 +206,26 @@ public class RoadInformationServiceImpl extends BaseServiceImpl<RoadInformationM |
|
|
|
return JsonResult.success(roadInformationList); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据租户id获取公路列表 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public JsonResult getListByTenantId() { |
|
|
|
//获取当前租户下id |
|
|
|
//String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
String tenantId = "1"; |
|
|
|
if(StringUtils.isEmpty(tenantId)){ |
|
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
|
} |
|
|
|
//查询公路列表 |
|
|
|
List<RoadInformation> roadInformationList = roadInformationMapper.selectList(new LambdaQueryWrapper<RoadInformation>() |
|
|
|
.eq(RoadInformation::getTenantId, tenantId) |
|
|
|
.eq(RoadInformation::getMark, MarkEnum.VALID.getCode())); |
|
|
|
|
|
|
|
return JsonResult.success(roadInformationList); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据部门列表获取公路列表 |
|
|
|
* @param tenantId |