| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.query.AssetMainPageQuery; |
| | | import com.ruoyi.system.service.AssetMainService; |
| | | import com.ruoyi.system.vo.asset.AssetMainPageVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | * 资产主表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author WuGuanFengYue |
| | | * @since 2025-09-15 |
| | | * 用于资产主数据的查询,新增:查询审批通过的资产分页列表接口 |
| | | */ |
| | | @Api(tags = {"资产-资产主数据相关接口"}) |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("/asset-main") |
| | | @RequiredArgsConstructor |
| | | public class AssetMainController { |
| | | |
| | | private final AssetMainService assetMainService; |
| | | |
| | | @ApiOperation("获取审批通过且可用的资产分页列表(排除已领用、已处置、未归还借用)") |
| | | @PostMapping("/page-list") |
| | | public R<IPage<AssetMainPageVO>> getApprovedAssetPageList(@RequestBody AssetMainPageQuery pageQuery) { |
| | | IPage<AssetMainPageVO> page = assetMainService.getApprovedPageList(pageQuery); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | } |
| | | |