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