|
|
|
@ -2461,8 +2461,8 @@ public class DepositoryRecordController { |
|
|
|
// 反转
|
|
|
|
Collections.reverse(inventoryAmountList); |
|
|
|
Collections.reverse(inventoryCountList); |
|
|
|
Map<String, Object> countItemForInventory = depositoryRecordService.createStackedAreaChartSeriesItem("count", inventoryCountList); |
|
|
|
Map<String, Object> amountItemForInventory = depositoryRecordService.createStackedAreaChartSeriesItem("amount", inventoryAmountList); |
|
|
|
Map<String, Object> countItemForInventory = depositoryRecordService.createStackedAreaChartSeriesItem("总数", inventoryCountList); |
|
|
|
Map<String, Object> amountItemForInventory = depositoryRecordService.createStackedAreaChartSeriesItem("总金额", inventoryAmountList); |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
|
|
|
|
result.put("countItemForIn", countItemForIn); |
|
|
|
@ -2470,7 +2470,7 @@ public class DepositoryRecordController { |
|
|
|
result.put("countItemForOut", countItemForOut); |
|
|
|
Map<String, List<String>> legendItem = new HashMap<>(); |
|
|
|
List<String> legends = new ArrayList<>(); |
|
|
|
legends.add("count"); |
|
|
|
legends.add("总数"); |
|
|
|
|
|
|
|
legendItem.put("data", legends); |
|
|
|
|
|
|
|
@ -2488,7 +2488,7 @@ public class DepositoryRecordController { |
|
|
|
result.put("amountItemForInventory", amountItemForInventory); |
|
|
|
result.put("amountItemForOut", amountItemForOut); |
|
|
|
result.put("amountItemForIn", amountItemForIn); |
|
|
|
legends.add("amount"); |
|
|
|
legends.add("总金额"); |
|
|
|
} |
|
|
|
result.put("legend", legendItem); |
|
|
|
return new RestResponse(result); |
|
|
|
|