src/main/java/com/hx/mybatisTool/SqlSentence.java
@@ -109,14 +109,15 @@ if(pageNum < 1){ pageNum = 1; } if(pageSize < 1){ pageSize = 1; } this.pageNum = pageNum; this.pageSize = pageSize; //算起点 int pageStart = (pageNum-1)*pageSize; //算结束点 int pageEnd = pageNum*pageSize; sql = sql+" LIMIT "+pageStart+","+pageEnd; sql = sql+" LIMIT "+pageStart+","+pageSize; sqlSentence = sql; m = values; }