| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得供应商") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:supplier:query')") |
| | | public CommonResult<ErpSupplierRespVO> getSupplier(@RequestParam("id") Long id) { |
| | | ErpSupplierDO supplier = supplierService.getSupplier(id); |
| | | return success(BeanUtils.toBean(supplier, ErpSupplierRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得供应商分页") |
| | | @PreAuthorize("@ss.hasPermission('erp:supplier:query')") |
| | | public CommonResult<PageResult<ErpSupplierRespVO>> getSupplierPage(@Valid ErpSupplierPageReqVO pageReqVO) { |
| | | PageResult<ErpSupplierDO> pageResult = supplierService.getSupplierPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, ErpSupplierRespVO.class)); |