车型列表租车类型增加标签
This commit is contained in:
@ -34,7 +34,7 @@ public class CarModelServiceImpl implements CarModelService {
|
|||||||
page.getRecords().forEach(carModelSimpleDTO -> {
|
page.getRecords().forEach(carModelSimpleDTO -> {
|
||||||
if(StringUtils.isNotBlank(carModelSimpleDTO.getRentalTypes())){
|
if(StringUtils.isNotBlank(carModelSimpleDTO.getRentalTypes())){
|
||||||
List<String> rentalTypeList = Arrays.asList(carModelSimpleDTO.getRentalTypes().split(","));
|
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()
|
String rentalTypesLabel = rentalTypeLabelList.stream()
|
||||||
.filter(sysDictDataDTO -> rentalTypeList.contains(sysDictDataDTO.getDictValue()))
|
.filter(sysDictDataDTO -> rentalTypeList.contains(sysDictDataDTO.getDictValue()))
|
||||||
.map(SysDictDataDTO::getDictLabel).collect(Collectors.joining("|"));
|
.map(SysDictDataDTO::getDictLabel).collect(Collectors.joining("|"));
|
||||||
|
|||||||
Reference in New Issue
Block a user