DigitalTwinsController.java
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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;
}
}