| | |
| | | |
| | | /** |
| | | * 大屏农资使用概况统计 |
| | | * |
| | | * @param farmId 农场id |
| | | * @return |
| | | */ |
| | | @GetMapping("/getStockCount") |
| | | public R getStockCount(String deptId) { |
| | | public R getStockCount(String farmId) { |
| | | //今年 |
| | | Double aDouble = farmService.selectJyCount(deptId); |
| | | Double aDouble = farmService.selectJyCount(farmId); |
| | | //去年 |
| | | Double aDouble1 = farmService.selectQyCount(deptId); |
| | | Double aDouble1 = farmService.selectQyCount(farmId); |
| | | //本月 |
| | | Double aDouble2 = farmService.selectByCount(deptId); |
| | | Double aDouble2 = farmService.selectByCount(farmId); |
| | | Map map = new HashMap(); |
| | | map.put("jn", aDouble); |
| | | map.put("qn", aDouble1); |