Commit 75a2d96a authored by lixuan's avatar lixuan

feat: 房源

parent 232a8b8a
Pipeline #143840 failed with stages
in 6 minutes and 35 seconds
......@@ -16,4 +16,16 @@ public class PageBusinessEntityStatisticsDetail {
private long scCount;
private long totalCount;
private long sjLyCount;
private long sjDlCount;
private long sjJqCount;
private long sjZhtCount;
private long sjScCount;
private long sjTotalCount;
}
......@@ -317,6 +317,15 @@ public class HouseResourceServiceImpl implements HouseResourceService {
pageBusinessEntityStatisticsDetail.setZhtCount(result.stream().filter(x -> x.getType() == 6).count());
pageBusinessEntityStatisticsDetail.setScCount(result.stream().filter(x -> x.getType() == 7).count());
pageBusinessEntityStatisticsDetail.setTotalCount(result.size());
Map<String, List<HouseResource>> collect = result.stream().collect(Collectors.groupingBy(HouseResource::getThree));
pageBusinessEntityStatisticsDetail.setSjTotalCount(collect.size());
for (String three : collect.keySet()) {
System.out.println("three = " + three);
long count = result.stream().filter(x -> x.getThree().equals(three)).filter(x -> x.getType() == 1).count();
System.out.println("count = " + count);
}
return pageBusinessEntityStatisticsDetail;
}
......
......@@ -156,9 +156,7 @@
and t4.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t4.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if>
</where>
<if test="query.sortWay != null and query.sortWay != ''">
order by t1.house_area ${query.sortWay}
</if>
GROUP BY t1.id
</select>
<select id="selectProfileGraph" resultType="com.ruoyi.system.domain.house.vo.HouseResourcePage">
SELECT
......
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