|
@@ -4,8 +4,9 @@
|
4
|
4
|
<select id="buildingList" resultType="com.example.wholeestate.model.Building">
|
5
|
5
|
SELECT * FROM ta_building
|
6
|
6
|
<where>
|
|
7
|
+ status > -1
|
7
|
8
|
<if test="Name != null and Name != ''">
|
8
|
|
- and ta_building.name like concat('%',#{Name,jdbcType=VARCHAR},'%')
|
|
9
|
+ and (ta_building.name like concat('%',#{Name,jdbcType=VARCHAR},'%') or ta_building.building_name like concat('%',#{Name,jdbcType=VARCHAR},'%'))
|
9
|
10
|
</if>
|
10
|
11
|
<if test="Code != null and Code != ''">
|
11
|
12
|
and ta_building.code like concat('%',#{Code,jdbcType=VARCHAR},'%')
|