| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/getFarmingCount") |
| | | public R getFarmingCount(String deptId) { |
| | | return R.data(farmService.getFarmingCount(deptId)); |
| | | public R getFarmingCount(String farmId) { |
| | | return R.data(farmService.getFarmingCount(farmId)); |
| | | } |
| | | |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/getFarmingStatis") |
| | | public R getFarmingStatis(String deptId) { |
| | | return R.data(farmService.getFarmingStatis(deptId)); |
| | | public R getFarmingStatis(String farmId) { |
| | | return R.data(farmService.getFarmingStatis(farmId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 大屏农资使用概况统计 |
| | | * |
| | | * @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); |