Explorar el Código

Merge branch 'v3.5.1' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3.5.1

胡轶钦 hace 5 años
padre
commit
1f16a3fefa
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      src/main/resources/mapper/TaBuildingMapper.xml

+ 4
- 1
src/main/resources/mapper/TaBuildingMapper.xml Ver fichero

201
     </select>
201
     </select>
202
 
202
 
203
     <select id="countNumByHeavy" resultType="java.lang.Integer">
203
     <select id="countNumByHeavy" resultType="java.lang.Integer">
204
-      select COUNT(1) from ta_building_dynamic t where t.heavy = #{heavy} and t.dynamic_id != #{dynamicId}
204
+      select COUNT(1) from ta_building_dynamic t where t.heavy = #{heavy}
205
+      <if test="dynamicId != null and dynamicId != ''">
206
+          and t.dynamic_id != #{dynamicId}
207
+      </if>
205
     </select>
208
     </select>
206
 
209
 
207
 </mapper>
210
 </mapper>