QueryObject
1 package com.ygm.aa.page.qo; 2 3 import lombok.Getter; 4 import lombok.NoArgsConstructor; 5 import lombok.Setter; 6 7 @Getter@Setter@NoArgsConstructor 8 public class Qo { 9 //当前页码 10 private Integer ye; 11 //一页多少条 12 private Integer sum; 13 14 //从那一条开始 15 private Integer sta; 16 17 public Qo(Integer ye, Integer sum) { 18 19 this.ye = ye; 20 this.sum = sum; 21 22 } 23 24 public Integer getsta(){ 25 // System.out.println(ye); 26 // System.out.println(sum); 27 this.sta = (ye-1)*sum; 28 return sta; 29 } 30 31 32 }