|
@@ -30,6 +30,31 @@
|
30
|
30
|
ORDER BY create_date DESC
|
31
|
31
|
</select>
|
32
|
32
|
|
|
33
|
+ <select id="buildingListSelect" resultType="com.huiju.estateagents.entity.TaBuilding">
|
|
34
|
+ SELECT * FROM ta_building
|
|
35
|
+ <where>
|
|
36
|
+ status =1
|
|
37
|
+ <if test="Name != null and Name != ''">
|
|
38
|
+ and (ta_building.name like concat('%',#{Name,jdbcType=VARCHAR},'%') or ta_building.building_name like concat('%',#{Name,jdbcType=VARCHAR},'%'))
|
|
39
|
+ </if>
|
|
40
|
+ <if test="Code != null and Code != ''">
|
|
41
|
+ and ta_building.code like concat('%',#{Code,jdbcType=VARCHAR},'%')
|
|
42
|
+ </if>
|
|
43
|
+ <if test="startDate != null">
|
|
44
|
+ and TO_DAYS(ta_building.opening_date ) = TO_DAYS(#{startDate})
|
|
45
|
+ </if>
|
|
46
|
+ <if test="marketStatus != null and marketStatus != ''">
|
|
47
|
+ and ta_building.market_status =#{marketStatus}
|
|
48
|
+ </if>
|
|
49
|
+ <if test="cityId != null and cityId != ''">
|
|
50
|
+ and ta_building.city_id =#{cityId}
|
|
51
|
+ </if>
|
|
52
|
+ <if test="isMain != null and isMain != ''">
|
|
53
|
+ and ta_building.is_main = #{isMain}
|
|
54
|
+ </if>
|
|
55
|
+ </where>
|
|
56
|
+ ORDER BY create_date DESC
|
|
57
|
+ </select>
|
33
|
58
|
|
34
|
59
|
<select id="buildingAll" resultType="com.huiju.estateagents.entity.TaBuilding">
|
35
|
60
|
SELECT * FROM ta_building
|