liding
3 天以前 388bd216d4eb70b367ada95118d1087b45f07ae3
main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java
@@ -1,21 +1,39 @@
package com.ruoyi.business.controller;
import org.springframework.web.bind.annotation.RequestMapping;
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.RestController;
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
*/
 * <p>
 * 正式库存表 前端控制器
 * </p>
 *
 * @author ruoyi
 * @since 2025-06-04
 */
@RestController
@AllArgsConstructor
@RequestMapping("/business/officialInventory")
        public class OfficialInventoryController {
@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);
    }
}