|
|
@ -87,10 +87,9 @@ public class WarehouseController { |
|
|
|
|
|
|
|
@GetMapping("/list") |
|
|
|
@Operation(summary = "获得仓库列表") |
|
|
|
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:warehouse:query')") |
|
|
|
public CommonResult<List<WarehouseRespVO>> getWarehouseList(@RequestParam("ids") Collection<Long> ids) { |
|
|
|
List<WarehouseDO> list = warehouseService.getWarehouseList(ids); |
|
|
|
public CommonResult<List<WarehouseRespVO>> getWarehouseList(@Valid WarehouseExportReqVO exportReqVO) { |
|
|
|
List<WarehouseDO> list = warehouseService.getWarehouseList(exportReqVO); |
|
|
|
return success(WarehouseConvert.INSTANCE.convertList(list)); |
|
|
|
} |
|
|
|
|
|
|
|