liding
4 天以前 388bd216d4eb70b367ada95118d1087b45f07ae3
main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java
@@ -1,7 +1,14 @@
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
/**
@@ -15,7 +22,18 @@
@RestController
@AllArgsConstructor
@RequestMapping("/business/officialInventory")
@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);
    }
    }