0519 ljc
This commit is contained in:
parent
6b34993a07
commit
68cd67d3e5
@ -1,7 +1,6 @@
|
|||||||
package cd.casic.ci.common.pipeline.utils;
|
package cd.casic.ci.common.pipeline.utils;
|
||||||
|
|
||||||
import cn.hutool.core.convert.Convert;
|
import cn.hutool.core.convert.Convert;
|
||||||
import cn.hutool.core.util.PageUtil;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@ -34,10 +33,10 @@ public class PageResult<T> implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer pageSize = 20;
|
private Integer pageSize = 20;
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 总页数
|
// * 总页数
|
||||||
*/
|
// */
|
||||||
private Integer totalPage = 0;
|
// private Integer totalPage = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 总记录数
|
* 总记录数
|
||||||
@ -49,10 +48,10 @@ public class PageResult<T> implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private List<T> list;
|
private List<T> list;
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 分页彩虹
|
// * 分页彩虹
|
||||||
*/
|
// */
|
||||||
private int[] rainbow;
|
// private int[] rainbow;
|
||||||
|
|
||||||
public PageResult() {
|
public PageResult() {
|
||||||
}
|
}
|
||||||
@ -68,8 +67,8 @@ public class PageResult<T> implements Serializable {
|
|||||||
this.setTotal(Convert.toInt(page.getTotal()));
|
this.setTotal(Convert.toInt(page.getTotal()));
|
||||||
this.setPageNo(Convert.toInt(page.getCurrent()));
|
this.setPageNo(Convert.toInt(page.getCurrent()));
|
||||||
this.setPageSize(Convert.toInt(page.getSize()));
|
this.setPageSize(Convert.toInt(page.getSize()));
|
||||||
this.setRainbow(PageUtil.rainbow(Convert.toInt(page.getCurrent()),
|
// this.setRainbow(PageUtil.rainbow(Convert.toInt(page.getCurrent()),
|
||||||
Convert.toInt(this.getTotalPage()), RAINBOW_NUM));
|
// Convert.toInt(this.getTotalPage()), RAINBOW_NUM));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,9 +83,9 @@ public class PageResult<T> implements Serializable {
|
|||||||
this.setTotal(Convert.toInt(page.getTotal()));
|
this.setTotal(Convert.toInt(page.getTotal()));
|
||||||
this.setPageNo(Convert.toInt(page.getCurrent()));
|
this.setPageNo(Convert.toInt(page.getCurrent()));
|
||||||
this.setPageSize(Convert.toInt(page.getSize()));
|
this.setPageSize(Convert.toInt(page.getSize()));
|
||||||
this.setTotalPage(PageUtil.totalPage(Convert.toInt(page.getTotal()),
|
// this.setTotalPage(PageUtil.totalPage(Convert.toInt(page.getTotal()),
|
||||||
Convert.toInt(page.getSize())));
|
// Convert.toInt(page.getSize())));
|
||||||
this.setRainbow(PageUtil.rainbow(Convert.toInt(page.getCurrent()),
|
// this.setRainbow(PageUtil.rainbow(Convert.toInt(page.getCurrent()),
|
||||||
Convert.toInt(this.getTotalPage()), RAINBOW_NUM));
|
// Convert.toInt(this.getTotalPage()), RAINBOW_NUM));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,4 +177,8 @@ ops:
|
|||||||
- mail_account
|
- mail_account
|
||||||
- mail_template
|
- mail_template
|
||||||
|
|
||||||
debug: false
|
debug: false
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user