| | |
| | | return Result.OK(""); |
| | | } |
| | | } |
| | | @GetMapping("/listWithLedgerAndConfig") |
| | | public Result<IPage<StocktakingPoundVo>> listWithLedgerAndConfig( |
| | | StocktakingPoundVo stocktakingPoundVo, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | |
| | | // 使用 QueryGenerator 构建 QueryWrapper |
| | | QueryWrapper<StocktakingPoundVo> queryWrapper = QueryGenerator.initQueryWrapper(stocktakingPoundVo, req.getParameterMap()); |
| | | |
| | | Page<StocktakingPoundVo> page = new Page<>(pageNo, pageSize); |
| | | IPage<StocktakingPoundVo> resultPage = baseToolsService.pageWithLedgerAndConfig(page, queryWrapper); |
| | | return Result.OK(resultPage); |
| | | } |
| | | } |