傅行帆 5 anos atrás
pai
commit
d6032b76d4
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/main/resources/mapper/TaBuildingMapper.xml

+ 2
- 1
src/main/resources/mapper/TaBuildingMapper.xml Ver arquivo

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