ソースを参照

分页抒写错误

wuxw 7 年 前
コミット
6f658db8a7

+ 1 - 1
java110-config/src/main/resources/mapper/floor/FloorServiceDaoImplMapper.xml

@@ -104,7 +104,7 @@ floor_id,name,status_cd,remark,b_id,user_id,floor_num
            and t.floor_num= #{floorNum}
         </if>
         <if test="page != -1">
-            limit page,row
+            limit #{page}, #{row}
         </if>
 
     </select>

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

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

+ 4 - 4
java110-config/src/main/resources/mapper/unit/UnitServiceDaoImplMapper.xml

@@ -120,8 +120,8 @@ where 1 =1
 <if test="userId !=null and userId != ''">
    and t.user_id= #{userId}
 </if> 
-<if test="page != -1 and page != null and page != ''">
-   limit page,row
+<if test="page != -1 and page != null ">
+   limit #{page}, #{row}
 </if> 
 
     </select>
@@ -237,8 +237,8 @@ where 1 =1
         <if test="userId !=null and userId != ''">
             and t.user_id= #{userId}
         </if>
-        <if test="page != -1 and page != null and page != ''">
-            limit page,row
+        <if test="page != -1 and page != null">
+            limit #{page}, #{row}
         </if>
     </select>