java110 4 anni fa
parent
commit
67cad9d57f

+ 1 - 1
java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml

@@ -230,7 +230,7 @@
         <if test="unitId !=null and unitId != ''">
             and t.unit_id= #{unitId}
         </if>
-        <if test="unitNum !=null and unitNum != ''">
+        <if test="unitNum !=null and unitNum != '' or unitNum == 0">
             and t.unit_num= #{unitNum}
         </if>
         <if test="lift !=null and lift != ''">