Skip to content

Instantly share code, notes, and snippets.

@anyutianluo
anyutianluo / qryByPage
Created December 21, 2021 02:46
[qry] 分页查询 qryByPage qry
def qryByPageByRobberyPool(Page page, GrailsParameterMap params) {
if (!params.max) params.max = page.getPageSize()
if (!params.offset) params.offset = page.getStartIndex()
if (!params.order) params.order = "desc"
if ("repaymentAbility".equals(params.rank)) {
params.sort = "repaymentAbility"
} else if ("repaymentIntent".equals(params.rank)) {
params.sort = "repaymentIntent"
} else {
@anyutianluo
anyutianluo / java1
Created December 12, 2020 18:29
java
java2