| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得固定资产") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('finance:fixed-asset:query')") |
| | | public CommonResult<FinFixedAssetRespVO> getFixedAsset(@RequestParam("id") Long id) { |
| | | FinFixedAssetDO asset = fixedAssetService.getFixedAsset(id); |
| | | if (asset == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得固定资产分页") |
| | | @PreAuthorize("@ss.hasPermission('finance:fixed-asset:query')") |
| | | public CommonResult<PageResult<FinFixedAssetRespVO>> getFixedAssetPage(@Valid FinFixedAssetPageReqVO pageReqVO) { |
| | | PageResult<FinFixedAssetDO> pageResult = fixedAssetService.getFixedAssetPage(pageReqVO); |
| | | PageResult<FinFixedAssetRespVO> result = BeanUtils.toBean(pageResult, FinFixedAssetRespVO.class, |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得固定资产列表") |
| | | @PreAuthorize("@ss.hasPermission('finance:fixed-asset:query')") |
| | | public CommonResult<List<FinFixedAssetRespVO>> getFixedAssetList() { |
| | | List<FinFixedAssetDO> list = fixedAssetService.getFixedAssetList(); |
| | | List<FinFixedAssetRespVO> voList = convertList(list, this::toRespVO); |