Commit 44ed4bdc authored by lixuan's avatar lixuan

feat: 房源

parent 080ea81e
Pipeline #145455 failed with stages
......@@ -114,6 +114,8 @@ public class HouseResourcePage {
private String businessEntityInfoName;
private String name;
private String principal;
private String principalTel;
......
......@@ -28,9 +28,9 @@ public class HouseResourcePageQuery extends PageDomain {
private String houseNumber;
private BigDecimal houseAreaMin = BigDecimal.ZERO;
private BigDecimal houseAreaMin;
private BigDecimal houseAreaMax = new BigDecimal(9999999);
private BigDecimal houseAreaMax;
private Integer houseResourceType;
......
......@@ -129,6 +129,7 @@
t3.nature,
t3.industry_classification,
ROUND(IFNULL(t1.unit_price,0) * 10000 / 365 / t1.house_area, 1) AS dayPrice,
t3.name,
t4.year
FROM
house_resource t1
......@@ -235,7 +236,7 @@
)
</if>
</where>
GROUP BY t1.id
GROUP BY t1.id, t3.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
......@@ -398,7 +399,7 @@
)
</if>
</where>
GROUP BY t1.id
GROUP BY t1.id, t3.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
......@@ -519,6 +520,7 @@
</foreach>
</if>
</where>
GROUP BY t1.id, t3.id
<trim prefix="having" prefixOverrides="and">
<if test="query.dayPriceMin != null and query.dayPriceMin != ''">
and dayPrice <![CDATA[ >= ]]> #{query.dayPriceMin}
......
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