车型列表租车类型增加标签

This commit is contained in:
2025-08-06 00:00:31 +08:00
parent a55cbe2eb8
commit f553f11154

View File

@ -34,7 +34,7 @@ public class CarModelServiceImpl implements CarModelService {
page.getRecords().forEach(carModelSimpleDTO -> {
if(StringUtils.isNotBlank(carModelSimpleDTO.getRentalTypes())){
List<String> rentalTypeList = Arrays.asList(carModelSimpleDTO.getRentalTypes().split(","));
List<SysDictDataDTO> rentalTypeLabelList = storeInteg.listDictDataByDicType("key_rental_type");
List<SysDictDataDTO> rentalTypeLabelList = storeInteg.listDictDataByDicType("key_rent_type");
String rentalTypesLabel = rentalTypeLabelList.stream()
.filter(sysDictDataDTO -> rentalTypeList.contains(sysDictDataDTO.getDictValue()))
.map(SysDictDataDTO::getDictLabel).collect(Collectors.joining("|"));