无关风月
2024-09-03 56dfe0d4bf81262622a1919cceb2b039fd356209
ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/ManagementGoodsMaterialsController.java
@@ -3,6 +3,8 @@
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.utils.page.PageDTO;
import com.ruoyi.common.security.service.TokenService;
import com.ruoyi.management.domain.ManagementGoodsMaterials;
import com.ruoyi.management.domain.dto.InventoriesSuppliesQuery;
import com.ruoyi.management.domain.dto.ManagementGoodsMaterialsQuery;
import com.ruoyi.management.domain.vo.InventoriesSuppliesVO;
@@ -11,11 +13,8 @@
import com.ruoyi.management.service.ManagementGoodsMaterialsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -33,11 +32,22 @@
public class ManagementGoodsMaterialsController {
    @Resource
    private TokenService tokenService;
    @Resource
    private ManagementGoodsMaterialsService managementGoodsMaterialsService;
    @PostMapping("/getManagementGoodsMaterialsList")
    @ApiOperation(value = "分页获库存预警列表")
    public R<PageDTO<ManagementGoodsMaterialsVO>> getManagementGoodsMaterialsList(@RequestBody ManagementGoodsMaterialsQuery managementGoodsMaterialsQuery) {
        tokenService.getLoginUser();
        return R.ok(managementGoodsMaterialsService.getManagementGoodsMaterialsList(managementGoodsMaterialsQuery));
    }
}