|
@@ -62,4 +62,32 @@
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="getListPageTotal" resultType="java.lang.Long">
|
|
|
|
|
+ SELECT count(*)
|
|
|
|
|
+ FROM a_simplified_house_info a
|
|
|
|
|
+ LEFT JOIN a_house_info_detail b ON a.id = b.simplified_house_id
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="entity.assetType != null and entity.assetType != ''">
|
|
|
|
|
+ AND a.asset_type = #{entity.assetType}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="entity.building != null and entity.building != ''">
|
|
|
|
|
+ AND a.building = #{entity.building}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="entity.floor != null and entity.floor != ''">
|
|
|
|
|
+ AND a.floor LIKE CONCAT(#{entity.floor}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="entity.rentRangeMin != null">
|
|
|
|
|
+ AND a.rent_range >= COALESCE(#{entity.rentRangeMin}, a.rent_range)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="entity.rentRangeMax != null">
|
|
|
|
|
+ AND a.rent_range <= COALESCE(#{entity.rentRangeMax}, a.rent_range)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="entity.areaMin != null">
|
|
|
|
|
+ AND b.area >= COALESCE(#{entity.areaMin}, b.area)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="entity.areaMax != null">
|
|
|
|
|
+ AND b.area <= COALESCE(#{entity.areaMax}, b.area)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|