查询优化,新增酸连轧页面
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user