大屏接口
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user