浏览代码

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

wuxw 7 年之前
父节点
当前提交
52942c83ef
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      java110-config/src/main/resources/mapper/room/RoomServiceDaoImplMapper.xml

+ 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>