java110 5 年 前
コミット
67cad9d57f
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml

+ 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 != ''">