DigitalTwinsController.java 1.66 KB
package com.huaheng.api.digitalTwins.controller;

import com.huaheng.api.digitalTwins.domain.InventoryInOutInfo;
import com.huaheng.pc.inventory.InventoryMaterialSummary.service.InventoryStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 数字孪生面板 控制器
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/wms/digitalTwins")
public class DigitalTwinsController {

    private final InventoryStatisticsService inventoryStatisticsService;

    /**
     * 年度入出库数量对比
     */
    @GetMapping("/getMonthlyInventoryInOutQty")
    public Map<Integer, InventoryInOutInfo> getMonthlyInventoryInOutQty(){
        return inventoryStatisticsService.getMonthlyInventoryInOutQty();
    }

    /**
     * 当日入出库数量对比
     */
    @GetMapping("/getDailyInventoryInOutQty")
    public Map<String, InventoryInOutInfo> getDailyInventoryInOutQty(){
        return inventoryStatisticsService.getDailyInventoryInOutQty();
    }


    /**
     * 库容使用率
     */
    @GetMapping("get1")
    public Map<Integer, InventoryInOutInfo> get1(){
        return null;
    }

    /**
     * 物资分类占比
     */
    @GetMapping("get2")
    public Map<Integer, InventoryInOutInfo> get2(){
        return null;
    }

    /**
     * 物资周转率
     * 该期间出库总金额×2/(期初库存金额+期末库存金额)
     */
    @GetMapping("get3")
    public Map<Integer, InventoryInOutInfo> get3(){
        return null;
    }
}