Commit f3ba8231 authored by lixuan's avatar lixuan

feat: 房源

parent 0e8bc019
Pipeline #145494 failed with stages
package com.ruoyi.system.domain.house.vo;
import com.ruoyi.system.domain.house.BusinessEntitySell;
import lombok.Data;
import java.util.List;
......@@ -36,4 +37,6 @@ public class AssociationBusinessEntityHouseResourceDto {
private boolean associationBusinessEntityFlag;
private HouseResourcePage houseResource;
private List<BusinessEntitySell> businessEntitySells;
}
......@@ -470,6 +470,11 @@ public class HouseResourceServiceImpl implements HouseResourceService {
List<HouseResourcePage> list = handleHouseList(Collections.singletonList(houseResourcePage), false);
associationBusinessEntityHouseResourceDto.setHouseResource(list.get(0));
}
List<BusinessEntitySell> businessEntitySells = businessEntitySellMapper.selectBusinessEntitySellByEntityId(x.getId());
if (!CollectionUtils.isEmpty(businessEntitySells)) {
associationBusinessEntityHouseResourceDto.setBusinessEntitySells(businessEntitySells);
}
result.add(associationBusinessEntityHouseResourceDto);
});
return result ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment