大屏接口

This commit is contained in:
猫猫guowen
2025-11-21 10:33:20 +08:00
parent 72a626268a
commit 1a4ab88f21
3 changed files with 177 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package com.ruoyi.api.controller;
import com.ruoyi.api.service.IStockScreenService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/stock")
public class StockScreenController {
@Autowired
private IStockScreenService stockScreenService;
@GetMapping("/all")
public AjaxResult getAllStocks() {
return AjaxResult.success(stockScreenService.getAllStocksWithTotal());
}
@GetMapping("/cargoSpace/pie")
public AjaxResult getCargoSpacePie() {
return AjaxResult.success(stockScreenService.getCargoSpacePie());
}
@GetMapping("/inout/stat")
public AjaxResult getInOutStat() {
return AjaxResult.success(stockScreenService.getInOutSummary());
}
}