Commit 2a8a7892 by 刘宇峰

新增车辆-车型管理

1 parent 8928c8a8
...@@ -736,7 +736,7 @@ public class VehicleService { ...@@ -736,7 +736,7 @@ public class VehicleService {
List<Long> userIds = list.stream().map(TenantTypesDTO::getCreatedBy).collect(Collectors.toList()); List<Long> userIds = list.stream().map(TenantTypesDTO::getCreatedBy).collect(Collectors.toList());
List<User> userList = userApiService.findByUser(userIds); List<User> userList = userApiService.findByUser(userIds);
list.forEach(ttd -> { list.forEach(ttd -> {
}); });
...@@ -824,15 +824,17 @@ public class VehicleService { ...@@ -824,15 +824,17 @@ public class VehicleService {
brandList.forEach(brand -> { brandList.forEach(brand -> {
//子品牌 //子品牌
List<CarInfoSelected> subBrandList = tenantVehicleTypeMapper.selectSubBrandByTenantIds(tenantIds, brand.getId()); List<CarInfoSelected> subBrandList = tenantVehicleTypeMapper.selectSubBrandByTenantIds(tenantIds, brand.getId());
brand.setChilds(subBrandList);
subBrandList.forEach(subBrand -> { subBrandList.forEach(subBrand -> {
//车系 //车系
List<CarInfoSelected> seriesList = tenantVehicleTypeMapper.selectSeriesByTenantIds(tenantIds, subBrand.getId()); List<CarInfoSelected> seriesList = tenantVehicleTypeMapper.selectSeriesByTenantIds(tenantIds, subBrand.getId());
subBrand.setChilds(seriesList);
seriesList.forEach(series -> { seriesList.forEach(series -> {
//车型 //车型
List<CarInfoSelected> typesList = tenantVehicleTypeMapper.selectTypesByTenantIds(tenantIds, series.getId()); List<CarInfoSelected> typesList = tenantVehicleTypeMapper.selectTypesByTenantIds(tenantIds, series.getId());
series.setChilds(typesList); if (CollectionUtils.isNotEmpty(typesList)) {
series.setChilds(typesList);
} else {
series.setChilds(Lists.newArrayList());
}
}); });
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!