| | |
| | | import com.vincent.rsf.server.manager.service.WarehouseService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | ExcelUtil.build(ExcelUtil.create(list, Warehouse.class), response); |
| | | } |
| | | |
| | | @ApiOperation("获取仓库树状图") |
| | | @PreAuthorize("hasAuthority('manager:warehouse:list')") |
| | | @GetMapping("/warehouse/areas") |
| | | public R getAreasForWarehouse() { |
| | | return R.ok(warehouseService.getAllWarehouseAreas()); |
| | | @PostMapping("/warehouse/areas") |
| | | public R getAreasForWarehouse(@RequestBody Map<String, Object> param) { |
| | | return R.ok(warehouseService.getAllWarehouseAreas(param)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |