调整/还原

test
wj 1 year ago
parent 4631e2dfcc
commit b65d72d1d5

@ -2,6 +2,7 @@ package com.glxp.api.service.thrsys.impl;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.auth.AuthLicenseDao;
import com.glxp.api.dao.thrsys.ThrSystemDao;
import com.glxp.api.entity.auth.AuthLicense;
@ -53,7 +54,7 @@ public class ThrSystemServiceImpl extends ServiceImpl<ThrSystemDao,ThrSystemEnti
if (filterBasicThirdSysRequest.getPage() != null) {
int offset = (filterBasicThirdSysRequest.getPage() - 1) * filterBasicThirdSysRequest.getLimit();
// PageHelper.offsetPage(offset, filterBasicThirdSysRequest.getLimit());
PageHelper.offsetPage(offset, filterBasicThirdSysRequest.getLimit());
}
List<ThrSystemEntity> data = thrSystemDao.filterBasicThiSys(filterBasicThirdSysRequest);
//查询本系统的授权码

@ -14,16 +14,16 @@ public class ListPageRequest {
@Min(message = "分页参数错误", value = 1)
private Integer page = 1;
private Integer page;
@Min(value = 1, message = "分页参数不能小于1")
@Max(value = 500, message = "分页参数不能大于500")
private Integer limit = 10;
private Integer limit;
private String orderBy;
private String sort;
public Page getPageObj() {
return new Page(this.page, this.limit);
return new Page(this.page == null ? 1 : this.page, this.limit == null ? 10 : this.limit);
}
}

Loading…
Cancel
Save