傅行帆 5 anni fa
parent
commit
d6032b76d4
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      src/main/resources/mapper/TaBuildingMapper.xml

+ 2
- 1
src/main/resources/mapper/TaBuildingMapper.xml Vedi File

@@ -4,7 +4,7 @@
4 4
     <select id="buildingList" resultType="com.huiju.estateagents.entity.TaBuilding">
5 5
         SELECT * FROM ta_building
6 6
         <where>
7
-            status = 1
7
+            status > -1
8 8
             <if test="Name != null and Name != ''">
9 9
                 and  (ta_building.name like concat('%',#{Name,jdbcType=VARCHAR},'%') or ta_building.building_name like concat('%',#{Name,jdbcType=VARCHAR},'%'))
10 10
             </if>
@@ -37,6 +37,7 @@
37 37
         SELECT * FROM ta_building
38 38
         <where>
39 39
             1 =1
40
+            and status = 1
40 41
             <if test="Name != null and Name != ''">
41 42
                 and  (ta_building.name like concat('%',#{Name,jdbcType=VARCHAR},'%') or ta_building.building_name like concat('%',#{Name,jdbcType=VARCHAR},'%'))
42 43
             </if>