This commit is contained in:
Lemon
2023-07-07 13:15:19 +08:00
parent 193fa58b2e
commit 753ed465f1
4 changed files with 13 additions and 5 deletions

View File

@@ -5,9 +5,11 @@ import com.jsowell.common.annotation.Log;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.core.domain.vo.AuthorizedDeptVO;
import com.jsowell.common.core.page.PageResponse;
import com.jsowell.common.core.page.TableDataInfo;
import com.jsowell.common.enums.BusinessType;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.PageUtils;
import com.jsowell.common.util.SecurityUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.poi.ExcelUtil;
@@ -121,13 +123,16 @@ public class PileMerchantInfoController extends BaseController {
*/
@PreAuthorize("@ss.hasPermi('pile:merchant:query')")
@GetMapping("/getFinancialMerchantList")
public TableDataInfo getFinancialMerchantList() {
public TableDataInfo getFinancialMerchantList(PageResponse pageResponse) {
int pageNum = pageResponse.getPageNum() == 0 ? 1 : pageResponse.getPageNum();
int pageSize = pageResponse.getPageSize() == 0 ? 10 : pageResponse.getPageSize();
// 权限过滤
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
if (authorizedMap == null) {
// 为空表示没有权限,返回空数组
return new TableDataInfo();
}
PageUtils.startPage(pageNum, pageSize);
return getDataTable(pileMerchantInfoService.queryInfoListByIds(authorizedMap));
}
}