| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * @author CodeBuddy |
| | | * @since 2025-09-17 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"OA审批-资产入库申请相关接口"}) |
| | | @Validated |
| | | @RestController |
| | |
| | | @ApiOperation("获取资产入库申请分页列表") |
| | | @PostMapping("/page-list") |
| | | public R<IPage<OaApprovalApplicationStoragePageVO>> getPageList(@RequestBody OaApprovalApplicationStoragePageQuery pageQuery) { |
| | | IPage<OaApprovalApplicationStoragePageVO> page = oaApprovalApplicationStorageService.getPageList(pageQuery); |
| | | IPage<OaApprovalApplicationStoragePageVO> page = null; |
| | | try { |
| | | page = oaApprovalApplicationStorageService.getPageList(pageQuery); |
| | | } catch (Exception e) { |
| | | log.error("获取资产入库申请分页列表失败", e); |
| | | return R.fail("服务器开小差啦"); |
| | | } |
| | | return R.ok(page); |
| | | } |
| | | |