Commit a7b6810b authored by lixuan's avatar lixuan

feat: 房源

parent 3d80b0ed
Pipeline #143772 failed with stages
in 33 minutes and 40 seconds
......@@ -27,4 +27,6 @@ public interface HouseResourceMapper {
List<HouseResourcePage> selectList(@Param("query") HouseResourcePageQuery houseResourcePageQuery);
List<HouseResource> selectAll();
List<HouseResource> selectPageBusinessEntityStatistics();
}
......@@ -294,7 +294,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
@Override
public PageBusinessEntityStatisticsDetail pageBusinessEntityStatistics(PageBusinessEntityStatisticsQuery query) {
List<HouseResource> list = houseResourceMapper.selectAll();
List<HouseResource> list = houseResourceMapper.selectPageBusinessEntityStatistics();
if (CollectionUtils.isEmpty(list)) {
return new PageBusinessEntityStatisticsDetail();
}
......
......@@ -229,4 +229,15 @@
<select id="selectAll" resultType="com.ruoyi.system.domain.house.HouseResource">
SELECT * FROM house_resource
</select>
<select id="selectPageBusinessEntityStatistics" resultType="com.ruoyi.system.domain.house.HouseResource">
SELECT
t2.wg_name AS wgName4,
t1.*,
t4.year_sell
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN business_entity_info t3 ON t1.id = t3.house_resource_id
LEFT JOIN business_entity_sell t4 ON t4.business_entity_info_id = t3.id
</select>
</mapper>
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