递归调用每个子节点保证父节点可以拿到所有子节点的详细信息

This commit is contained in:
2025-07-29 16:34:20 +08:00
parent 8692f875f5
commit f4b0b1d720
2 changed files with 60 additions and 2 deletions

View File

@@ -97,4 +97,15 @@ public class WmsStockController extends BaseController {
@PathVariable Long[] stockIds) {
return toAjax(iWmsStockService.deleteWithValidByIds(Arrays.asList(stockIds), true));
}
/**
* 测试递归查询功能
*/
@GetMapping("/test/warehouse/{warehouseId}")
public R<String> testWarehouseQuery(@PathVariable Long warehouseId) {
WmsStockBo bo = new WmsStockBo();
bo.setWarehouseId(warehouseId);
List<WmsStockVo> list = iWmsStockService.queryList(bo);
return R.ok("查询到 " + list.size() + " 条库存记录仓库ID: " + warehouseId);
}
}