查询优化,新增酸连轧页面

This commit is contained in:
2025-11-17 11:58:42 +08:00
parent e60b62f3e2
commit 23900f38f8
11 changed files with 1523 additions and 380 deletions

View File

@@ -51,6 +51,10 @@ public class WmsProductController extends BaseController {
*/
@GetMapping("/listWithBom")
public TableDataInfo<WmsProductVo> listWithBom(WmsProductBo bo, PageQuery pageQuery) {
// 限制最大 pageSize 为 1000防止查询过多数据导致性能问题
if (pageQuery.getPageSize() != null && pageQuery.getPageSize() > 1000) {
pageQuery.setPageSize(1000);
}
return iWmsProductService.queryPageListWithBom(bo, pageQuery);
}

View File

@@ -50,6 +50,10 @@ public class WmsRawMaterialController extends BaseController {
*/
@GetMapping("/listWithBom")
public TableDataInfo<WmsRawMaterialVo> listWithBom(WmsRawMaterialBo bo, PageQuery pageQuery) {
// 限制最大 pageSize 为 1000防止查询过多数据导致性能问题
if (pageQuery.getPageSize() != null && pageQuery.getPageSize() > 1000) {
pageQuery.setPageSize(1000);
}
return iWmsRawMaterialService.queryPageListWithBom(bo, pageQuery);
}