Commit 79a6de8a authored by lixuan's avatar lixuan

feat: 房源

parent 43410708
Pipeline #145027 failed with stages
in 5 minutes and 50 seconds
......@@ -75,4 +75,6 @@ public class HouseResourcePageQuery extends PageDomain {
private String industryClassification;
private String incomeSort;
private Integer year;
}
......@@ -130,7 +130,8 @@
SUM(t4.year_sell) AS income,
t3.nature,
t3.industry_classification,
ROUND(IFNULL(t1.unit_price,0) * 10000 / 365 / t1.house_area, 1) AS dayPrice
ROUND(IFNULL(t1.unit_price,0) * 10000 / 365 / t1.house_area, 1) AS dayPrice,
t4.year
FROM
house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
......@@ -176,6 +177,9 @@
<if test="query.industryClassification != null and query.industryClassification != ''">
and t3.industry_classification like concat('%', #{query.industryClassification}, '%')
</if>
<if test="query.year != null">
and t4.`year` = #{query.year}
</if>
<if test="query.wgCodes != null and query.wgCodes.size() > 0">
and t1.two in
<foreach item="item" index="index" collection="query.wgCodes" open="(" separator="," close=")">
......
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