package com.ruoyi.business.controller;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.business.dto.OfficialInventoryDto;
|
import com.ruoyi.business.entity.OfficialInventory;
|
import com.ruoyi.business.service.OfficialInventoryService;
|
import com.ruoyi.common.core.domain.R;
|
import lombok.AllArgsConstructor;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* <p>
|
* 正式库存表 前端控制器
|
* </p>
|
*
|
* @author ruoyi
|
* @since 2025-06-04
|
*/
|
|
@RestController
|
@AllArgsConstructor
|
@RequestMapping("/officialInventory")
|
public class OfficialInventoryController {
|
|
private OfficialInventoryService officialInventoryService;
|
|
/**
|
* 正式库库表查询
|
*/
|
@GetMapping("/list")
|
public R<IPage<OfficialInventory>> list(Page page, OfficialInventoryDto officialInventoryDto) {
|
IPage<OfficialInventory> list = officialInventoryService.selectOfficialInventoryList(page,officialInventoryDto);
|
return R.ok(list);
|
}
|
|
}
|