Browse Source

处理mybatis 将int 类型 0 处理为 ''的问题

wuxw 7 years ago
parent
commit
52942c83ef

+ 2 - 2
java110-config/src/main/resources/mapper/room/RoomServiceDaoImplMapper.xml

@@ -147,7 +147,7 @@ where 1 =1
 <if test="apartment !=null and apartment != ''">
    and t.apartment= #{apartment}
 </if> 
-<if test="page != -1 and page != null and page != ''">
+<if test="page != -1 and page != null">
    limit page,row
 </if> 
 
@@ -357,7 +357,7 @@ where 1 =1
         <if test="apartment !=null and apartment != ''">
             and t.apartment= #{apartment}
         </if>
-        <if test="page != -1 and page != null and page != ''">
+        <if test="page != -1 and page != null">
             limit page,row
         </if>