|
@@ -4,29 +4,30 @@
|
4
|
4
|
|
5
|
5
|
<select id="listHousingResources" resultType="com.huiju.estateagents.po.TaHousingResourcesPO">
|
6
|
6
|
SELECT
|
7
|
|
- t.house_id,
|
8
|
|
- t.building_id,
|
9
|
|
- t.block_id,
|
10
|
|
- t.block_name,
|
11
|
|
- t.sales_batch_id,
|
12
|
|
- t.unit_id,
|
13
|
|
- t.unit_name,
|
14
|
|
- t.floor_id,
|
15
|
|
- t.floor_name,
|
16
|
|
- t.room_id,
|
17
|
|
- t.room_name,
|
18
|
|
- t.price,
|
19
|
|
- t.heat,
|
20
|
|
- t.apartment_id,
|
21
|
|
- t.`status`,
|
22
|
|
- t.org_id,
|
23
|
|
- t2.inside_area,
|
24
|
|
- t2.building_area
|
|
7
|
+ t.house_id,
|
|
8
|
+ t.building_id,
|
|
9
|
+ t.block_id,
|
|
10
|
+ t.block_name,
|
|
11
|
+ t.sales_batch_id,
|
|
12
|
+ t.unit_id,
|
|
13
|
+ t.unit_name,
|
|
14
|
+ t.floor_id,
|
|
15
|
+ t.floor_name,
|
|
16
|
+ t.room_id,
|
|
17
|
+ t.room_name,
|
|
18
|
+ t.price,
|
|
19
|
+ t.heat,
|
|
20
|
+ t.apartment_id,
|
|
21
|
+ t.`status`,
|
|
22
|
+ t.org_id,
|
|
23
|
+ t2.inside_area,
|
|
24
|
+ t2.building_area,
|
|
25
|
+ t2.apartment_name
|
25
|
26
|
FROM
|
26
|
|
- ta_housing_resources t,
|
27
|
|
- ta_building_apartment t2
|
|
27
|
+ ta_housing_resources t,
|
|
28
|
+ ta_building_apartment t2
|
28
|
29
|
WHERE
|
29
|
|
- t.sales_batch_id = #{salesBatchId}
|
|
30
|
+ t.sales_batch_id = #{salesBatchId}
|
30
|
31
|
<if test="startPrice != null and startPrice != '' and endPrice != null and endPrice != ''">
|
31
|
32
|
AND ( t.price BETWEEN #{startPrice} AND #{endPrice} )
|
32
|
33
|
</if>
|
|
@@ -36,8 +37,7 @@
|
36
|
37
|
AND t.apartment_id = t2.apartment_id
|
37
|
38
|
AND t.`status` = 1
|
38
|
39
|
AND t2.`status` = 1
|
39
|
|
- ORDER BY
|
40
|
|
- t.create_date DESC
|
|
40
|
+ ORDER BY t.create_date DESC
|
41
|
41
|
</select>
|
42
|
42
|
|
43
|
43
|
<select id="listBuildApartmentBySalesBatchId" resultType="com.huiju.estateagents.entity.TaBuildingApartment">
|